【发布时间】:2013-08-16 10:30:43
【问题描述】:
在 Android 应用程序中,我遵循了本教程: Share Post on google plus
@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。
但我不知道在 google plus 上共享 Post 之后调用哪个方法,以及何时返回应用程序。那么你知道任何回调方法吗?
任何帮助将不胜感激。
【问题讨论】:
-
在
startActivity或startActivityForResult之后,它被称为setResult()和finish()。 -
您在问题标签中添加了深层链接。你的意思是如何处理深度链接?如果没有,那么你必须重写 onActivityResult 方法
标签: android share google-plus deep-linking