Intent intent = new Intent(Intent.ACTION_SENDTO);
intent.setData(Uri.parse("smsto:"));
intent.putExtra("exit_on_sent", true);
try {
intent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(new File(ImageUtils.saveBitmap(screenshot))));
} catch (IOException e) {
e.printStackTrace();
}
startActivity(intent);
这种方法在华为荣耀4C上无法把图片传过去
不知道你这个问题是否已经解决, 如果还没有解决的话: