我正在尝试使用 HTC 设备(2.3.5,HTC Desire HD-Sense)通过彩信发送 jpg 图像,我正在使用以下代码段
File sendfilepath = new File("file://" + sendfile);
Uri urimms = Uri.fromFile(sendfilepath);
Intent sendIntent = new Intent("android.intent.action.SEND_MSG");
sendIntent.putExtra(Intent.EXTRA_STREAM, urimms);
sendIntent.setType("image/jpeg");
startActivity(sendIntent);
它会打开消息应用程序,但不会附加图像。我不知道为什么?它显示吐司“无法加载消息”