相关疑难解决方法(0)

来自url的android共享图片

我想使用代码共享图像:

Intent sharingIntent = new Intent(Intent.ACTION_SEND);
Uri imageUri = Uri.parse("http://stacktoheap.com/images/stackoverflow.png");
sharingIntent.setType("image/png");
sharingIntent.putExtra(Intent.EXTRA_STREAM, imageUri);
startActivity(sharingIntent);
Run Code Online (Sandbox Code Playgroud)

我做了一个调用上面代码的按钮.共享意图打开但我点击"通过彩信共享":"无法将此图片添加到您的消息".如果Facebook我只有一个没有我的照片的文本区域.

android share

18
推荐指数
4
解决办法
5万
查看次数

标签 统计

android ×1

share ×1