1. Check out our app, Forums for Android! Download and leave feedback here!

Problem to open by default Messaging application in droid X

Discussion in 'Android Apps & Games' started by dakhani, Nov 23, 2010.

  1. dakhani

    dakhani New Member
    Thread Starter
    5

    Nov 23, 2010
    1
    0
    5
    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...