开发者

MMS between 2 Android devices in emulators

开发者 https://www.devze.com 2023-02-19 12:42 出处:网络
Can I test the MMS code with two emulators? Is any service providers needed for enabling MMS? Intent sendIntent = new Intent(Intent.ACTION_SEND);

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消