(回拨法)在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