Android向Google plus社区发布文本
我正试图在社区中发布一些文本 我看到了很多分享文本到个人资料的教程 有没有人能给我一些建议,我可以如何将文本发布到Google plus社区 我试过这样做Android向Google plus社区发布文本,android,google-plus,android-sharing,Android,Google Plus,Android Sharing,我正试图在社区中发布一些文本 我看到了很多分享文本到个人资料的教程 有没有人能给我一些建议,我可以如何将文本发布到Google plus社区 我试过这样做 Intent intent = new Intent(Intent.ACTION_VIEW); Intent shareIntent = ShareCompat.IntentBuilder.from(MainActivity.this) .setType("text/pla
Intent intent = new Intent(Intent.ACTION_VIEW);
Intent shareIntent = ShareCompat.IntentBuilder.from(MainActivity.this)
.setType("text/plain")
.setText(vo)
.getIntent()
.setPackage("com.google.android.apps.plus")
.setClassName("com.google.android.apps.plus",
"com.google.android.apps.plus.phone.UrlGatewayActivity")
.putExtra("customAppUri",
"https://plus.google.com/communities/107139874057758406172");
startActivity(shareIntent);
谢谢,这是事先准备好的
Intent shareIntent = new PlusShare.Builder(this)
.setType("text/plain")
.setText("Heard about this restaurant from +109813896768294978296. Check out the menu +friendnotonplus@example.com")
.setContentUrl(Uri.parse("https://developers.google.com/+/web/snippet/examples/restaurant"))
.getIntent();
startActivityForResult(shareIntent, 0);
参考: