在Google +上发帖:目前的情况如何?

时间:2012-09-15 10:37:36

标签: android google-plus

  

可能重复:
  Can we post on Google plus from android application?

根据stackoverflow上的这篇文章 Can we post on Google plus from android application?

google +的API是只读的,所以我无法发帖,反正日期指的是去年..有什么改变了吗?

我需要一种在谷歌+墙上共享链接的方法,你可以在网站上的“谷歌+分享”按钮上找到相同的行为,但在我的应用上。

我不能依赖webview,因为用户当前无法登录到Google +的帐户,我宁愿不启动webbrowser的意图:最好的选择是定义使用google + api来实现此任务... < / p>

1 个答案:

答案 0 :(得分:2)

试试这个。

Intent shareIntent = ShareCompat.IntentBuilder.from(ShareActivity.this)
   .setText("This site has lots of great information about Android!
      http://www.android.com")
   .setType("text/plain")
   .getIntent()
   .setPackage("com.google.android.apps.plus");

startActivity(shareIntent);

Look at here了解详情。