简体   繁体   English

模拟器中2个Android设备之间的MMS

[英]MMS between 2 Android devices in emulators

Can I test the MMS code with two emulators? 我可以使用两个仿真器测试MMS代码吗? Is any service providers needed for enabling MMS? 启用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:"));

According to the Android SDK Release Notes : 根据Android SDK发行说明

It is not possible to send MMS messages between emulator instances. 无法在仿真器实例之间发送MMS消息。

您应该使用ACTION_SENDTO或检查以下内容:将MMS发送到其他Android设备

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM