我用这个
Intent share = new Intent(Intent.ACTION_SEND);
share.setType("image/jpg");
share.putExtra(Intent.EXTRA_STREAM, Uri.parse(path));
share.putExtra(Intent.EXTRA_TEXT, "Photo");
startActivity(Intent.createChooser(share, "Share Image"));
路径:
path = Environment.getExternalStorageDirectory() + "/images/fotka.jpg";
编辑: 我添加截图 http://imgupload.sk/viewer.php?file=lffg9lcqmea59634sd0d.png http://imgupload.sk/viewer.php?file=eojozqjldq27ovahz4yn.png
抱歉斯洛伐克语:)