谷歌加上共享API发布两次在墙上

时间:2014-01-23 13:20:17

标签: android google-plus

我想分享一些链接到谷歌+墙。我使用过PlusShare.Builder。我已关注此链接https://developers.google.com/+/mobile/android/share/

shareButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
  // Launch the Google+ share dialog with attribution to your app.
  Intent shareIntent = new PlusShare.Builder(this)
      .setType("text/plain")
      .setText("Welcome to the Google+ platform.")
      .setContentUrl(Uri.parse("https://developers.google.com/+/"))
      .getIntent();

  startActivityForResult(shareIntent, 0);
}
});

问题是,我可以在Google +中看到我的帖子两次。

0 个答案:

没有答案