1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

Problem to open by default Messaging application in droid X


Last Updated:

  1. dakhani

    dakhani New Member This Topic's Starter

    Joined:
    Nov 23, 2010
    Messages:
    1
    Likes Received:
    0
    Hello,

    Hello i am using below code to send MMS in android. And this code will open android default app but in all device its work except Droid X please let me know ASAP what is wrong in code. and also let me know how to send MMS as silent mode without opening default MMS app.

    Intent sendIntent = new Intent(Intent.ACTION_SEND);
    sendIntent.putExtra("address", phoneNumber);
    sendIntent.putExtra("sms_body", "hi this is testing");
    Uri uri = Uri.fromFile(new File(
    "/sdcard/tmp.jpg"));
    sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
    sendIntent.setType("image/*");
    // startActivity(Intent.createChooser(sendIntent, "Send Image //To:"));

    startActivity(sendIntent);







    Thanks
     

    Advertisement

Share This Page

Loading...