(回撥法)在Android應用程序之後被調用時,我follwed本教程: Share Post on google plus哪種方法後是在谷歌共享再加上Android的
@Override
public void onClick(View v) {
String tripDetails = "Test;
Intent shareIntent = new PlusShare.Builder(this)
.setText(tripDetails)
.setType("image/png")
.setContentDeepLinkId("Testing",
"Testing",
"Description.",
Uri.parse("https://www.example.com/image.png"))
.getIntent();
startActivityForResult(shareIntent, 0);
}
它成功運行和崗位是在谷歌加還分享。
但是我不知道在Google Plus上共享Post以及何時返回到應用程序後調用哪個方法。那麼你知道任何回撥方法嗎?
任何幫助將不勝感激。
'startActivity'或'startActivityForResult'後,它被稱爲'setResult()'和'finish()'。 – g00dy
您已在問題標籤中添加了深層鏈接。你的意思是如何處理深層鏈接?如果不是,那麼你必須重寫onActivityResult方法 – Tarun