1
以下是我使用Google+應用的ShareActivity分享的方式。我想知道如果我可以避免這一個額外的步驟,並直接從我的應用程序的用戶界面發佈?謝謝。如何在不使用ShareActivity的情況下直接更新Google+狀態?
Intent shareIntent = new PlusShare.Builder(this).setType("image/jpeg")
.setText(status.getText().toString())
.setContentUrl(Uri.parse("https://developers.google.com/+/"))
.setStream(Uri.fromFile(image))
.getIntent()
.setPackage("com.google.android.apps.plus");
startActivityForResult(shareIntent, 0);