如果是想调用系统界面发送彩信,相当简单,和发送短信一样,只需要发送相应的Intent就行,就像下面这样就可以
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setClassName("com.android.mms", "com.android.mms.ui.ComposeMessageActivity");
intent.putExtra("subject", "彩信主题");
intent.putExtra("sms_body", "彩信内容");
intent.putExtra("address", editPhonenumber.getText().toString());
intent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/test.jpg"));
intent.setType("image/jpeg");
startActivity(intent);
如果不想调用系统界面发送就很麻烦了,我在网上也找了很久,没有一个真正完整的demo
所以我自己研究android的源码写了一个(不用调用系统界面),绝对可以运行
有意请联系:304443641@qq.com