Deeplink无法打开应用

时间:2013-12-19 18:01:24

标签: android google-plus

我目前正在开发Deep-Linking并在Android应用中跟进互动帖子。 我直接从示例中获得了以下代码片段:

    Intent shareIntent = new PlusShare.Builder(this.getActivity(),getGoogleLoginListener().getPClient())
            .setText("Lemon Cheesecake recipe")
            .setType("text/plain")
            .setContentDeepLinkId("/cheesecake/lemon", /** Deep-link identifier */
                    "Lemon Cheesecake recipe", /** Snippet title */
                    "A tasty recipe for making lemon cheesecake.", /** Snippet description */
                    Uri.parse(imagePath))
            .getIntent();


    startActivityForResult(shareIntent, 0);

我还包括了码头中描述的到达活动。 它打开Share-Dialog,如果我分享它,它也会出现在G + Feed中。 如果我现在点击条目它将什么都不做。如果我还提供了一个Desktop-Url,它只会打开浏览器并访问Desktop-Url并完全忽略深层链接路径。 在Developer Consoloe中,我确实在每个连接的应用程序上启用了深度链接。

我做错了吗?

0 个答案:

没有答案