public static void sendSMS(Context c) {
PaintController.save2Cache(c);// 先把图片保存,再调用系统自带的SMS
String imgpath = "file://" + Environment.getExternalStorageDirectory()
+ "/cache.png";
System.out.println("readfrom:" + imgpath);
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(Intent.EXTRA_STREAM, Uri.parse(imgpath));
intent.setType("image/png");
c.startActivity(intent);
}
Android发送彩信(带图片附件)
最新推荐文章于 2022-08-12 20:19:47 发布