1

Can I test the MMS code with two emulators? Is any service providers needed for enabling MMS?

Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra("address", 5556);
sendIntent.putExtra("sms_body", "Hi");
Uri uri = Uri.fromFile(new File(Environment.getExternalStorageDirectory().getPath()+"/img.png"));
sendIntent.putExtra(Intent.EXTRA_STREAM, uri);
sendIntent.setType("image/*");
startActivity(Intent.createChooser(sendIntent, "Send Image To:"));
p.campbell
  • 98,673
  • 67
  • 256
  • 322
info
  • 2,152
  • 5
  • 22
  • 38

2 Answers2

5

According to the Android SDK Release Notes:

It is not possible to send MMS messages between emulator instances.

Qantas 94 Heavy
  • 15,750
  • 31
  • 68
  • 83
Rajath
  • 11,787
  • 7
  • 48
  • 62
0

You should use ACTION_SENDTO or check this: Sending MMS into different Android devices.

Community
  • 1
  • 1
Karan
  • 12,724
  • 6
  • 40
  • 33