MMS between 2 Android devices in emulators
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 I开发者_StackOverflow社区mage To:"));
According to the Android SDK Release Notes:
It is not possible to send MMS messages between emulator instances.
You should use ACTION_SENDTO
or check this: Sending MMS into different Android devices.
精彩评论