【发布时间】:2015-10-06 20:22:10
【问题描述】:
我正在尝试使用此代码将带有描述的图片分享给 google+:
iv = (ImageView) findViewById(R.id.iv);
Uri image = Uri.parse("android.resource://com.ahmed.mostafa.testgplus/"
+ R.drawable.ic_launcher);
iv.setImageURI(image);
PlusShare.Builder share = new PlusShare.Builder(this);
share.setText("Hi G+");
share.setType("image/jpeg");
share.addStream(image);
startActivityForResult(share.getIntent(), 0);
ImageView iv 显示图像。但是当 Google+ 对话框出现时,描述“Hi G+”出现,但图像不显示。
我的代码有什么问题。我从Here得到它
【问题讨论】:
标签: android google-api google-plus share android-resources