问题描述,是使用友盟第三方分享图片到新浪微博上,到了分享界面右上角的图片一直不显示。。出现 读取图片流出错java.net.MalformedURLException: Protocol not found: 和open failed: EACCES (Permission denied)/pen failed: EISDIR (Is a directory) 这些错误;
答案:分享代码:
public static void share2SinaWithImage(final Context context, String content, ScrollView scrollView,
View shutImageView, View photoImageView, View textView) {
mController.getConfig().setSsoHandler(new SinaSsoHandler());
SinaShareContent sina = new SinaShareContent();
sina.setShareContent(content);
if (!UItools.isFastDoubleClick()) {
Bitmap bitmap = screenShot(scrollView, shutImageView, photoImageView, textView);
if (null == bitmap) {
((BaseActivity)context).showToast(“分享到微博失败!”);
return;
}
sina.setShareImage(new UMImage(context, bitmap));
mController.setShareMedia(sina);
postShare(context, SHARE_MEDIA.SINA);
}
}
</