在模拟器2 Android设备之间的MMS [英] MMS between 2 Android devices in emulators
本文介绍了在模拟器2 Android设备之间的MMS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以测试彩信code两个仿真器?是任何服务提供商需要启用彩信?
意图sendIntent =新的意图(Intent.ACTION_SEND);
sendIntent.putExtra(地址,5556);
sendIntent.putExtra(sms_body,你好);
开放的我们的uri = Uri.fromFile(新文件(Environment.getExternalStorageDirectory()getPath()+/ img.png));
sendIntent.putExtra(Intent.EXTRA_STREAM,URI);
sendIntent.setType(图像/ *);
startActivity(Intent.createChooser(sendIntent,发送图片到:));
解决方案
这是不可能送仿真器实例之间的彩信。
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:"));
解决方案
According to the Android SDK Release Notes:
It is not possible to send MMS messages between emulator instances.
这篇关于在模拟器2 Android设备之间的MMS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文