1
我在安卓下面的代碼以編程方式將一組照片將在Google+上分享了一條信息:編程添加圖片說明Google+的圖像份額,在Android的
private void shareToGooglePlus() {
// Launch the Google+ share dialog with attribution to your app.
PlusShare.Builder share = new PlusShare.Builder(this);
for (String imageFilename : imageList) {
Uri imageUri = Uri.fromFile(new File(imageFilename));
share.addStream(imageUri);
}
share.setText("My images");
share.setType("image/jpeg");
startActivityForResult(share.getIntent(), 0);
}
因爲我有一大堆的不同圖像,我想爲每個圖片添加標題以描述每張圖片中的內容。但是,我似乎無法找到與PlusShare.Builder一起使用的方法。有誰知道這是否可能以及如何去做?
Thanx提前。