小编use*_*304的帖子

从Android应用程序共享图像使用动作发送意图它不起作用:(

我用了

Intent sharingIntent = new Intent(Intent.ACTION_SEND);

Uri screenshotUri = Uri.parse("file//res/drawable/u.png");
 

sharingIntent.setType("image/png");


sharingIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri);


startActivity(Intent.createChooser(sharingIntent, "Share image using"));
Run Code Online (Sandbox Code Playgroud)

//我使用sumsung real为device.and我选择在facebook上分享.//但是内容是空的而不是我的共享图像我无法共享图像.

这是意图动作发送不使用facebook sdk.你能帮我吗?

android facebook

3
推荐指数
1
解决办法
2万
查看次数

标签 统计

android ×1

facebook ×1