Sending MMS into different Android devices

江枫思渺然 提交于 2019-12-01 13:52:22

Have you tried something like this (change to your need and add images etc...):

Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mmsto:<number>");
intent.putExtra("address", <number>);
intent.putExtra("subject", <subject>);
startActivity(intent);

The above is the best I could come up with which works on HTC/Nexus/SE from 1.6 to 2.2.

send from your app ?

before startActivity, you can

intent.setClassName("your package name", "your class name");

startActivity(intent);

You could try something like this.Which will launches all the apps which can handle the intent.

intent.setAction(Intent.ACTION_SEND);
//In case of multiple file
intent.setAction(Intent.ACTION_SEND_MULTIPLE);
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, <List of uris>);
intent.putExtra(Intent.EXTRA_STREAM, <singleUri>);
intent.setType("*/*");
startActivity(intent);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!