根据stackoverflow上的这篇文章 Can we post on Google plus from android application?
google +的API是只读的,所以我无法发帖,反正日期指的是去年..有什么改变了吗?
我需要一种在谷歌+墙上共享链接的方法,你可以在网站上的“谷歌+分享”按钮上找到相同的行为,但在我的应用上。
我不能依赖webview,因为用户当前无法登录到Google +的帐户,我宁愿不启动webbrowser的意图:最好的选择是定义使用google + api来实现此任务... < / p>
答案 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了解详情。