Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/214.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android中的深度链接交互式帖子_Android_Google Plus - Fatal编程技术网

Android中的深度链接交互式帖子

Android中的深度链接交互式帖子,android,google-plus,Android,Google Plus,我正在试用Google plus示例项目中的交互式帖子 private Intent getInteractivePostIntent() { String action = "/?view=true"; Uri callToActionUrl = Uri.parse(getString(R.string.plus_example_deep_link_url) + action); String callToActionDeepLinkId = getString(R.

我正在试用Google plus示例项目中的交互式帖子

private Intent getInteractivePostIntent() 
{
    String action = "/?view=true";
    Uri callToActionUrl = Uri.parse(getString(R.string.plus_example_deep_link_url) + action);
    String callToActionDeepLinkId = getString(R.string.plus_example_deep_link_id) + action;


    PlusShare.Builder builder = new PlusShare.Builder(this);
    builder.addCallToAction(LABEL_VIEW_ITEM, callToActionUrl, callToActionDeepLinkId);
    builder.setContentUrl(Uri.parse(getString(R.string.plus_example_deep_link_url)));
    builder.setContentDeepLinkId(getString(R.string.plus_example_deep_link_id),
            null, null, null);
    builder.setText(getString(R.string.inviteText));

    builder.setRecipients(recipients);

    return builder.getIntent();
 }
根据文件:

 plus_example_deep_link_url: is for desktop
 plus_example_deep_link_id: is for mobile
所以我尝试了这个链接:

https://play.google.com/store/apps/details?id=com.thinkleft.eightyeightsms.mms
com.abc.cdef

我应该在deep\u link\u id中输入什么?即使我在那里输入了随机文本,结果也会出现?

第一个“deep link Google+”的谷歌结果有一整页都是关于这个问题的:@abraham:我看到了这个链接,问题是我不明白他们对deep\u link\u id的解释是什么?因此,在中发布了一个问题,是否有人可以对此进行解释?其中有一个完整的部分,但为了保持简单,只需使用用户在浏览器中访问页面时使用的相同URL即可。
 <string name="plus_example_deep_link_url">https://play.google.com/store/apps/details?id=com.thinkleft.eightyeightsms.mms</string>
<string name="plus_example_deep_link_id">com.abc.cdef</string>