dev*_*v90 7 performance android deep-linking android-layout android-fragments
我已经为我的应用创建了一个深层链接,myapp://video或者说我已经添加uber://但是当我从Chrome浏览器打开这些时,它需要我google,它不会将此视为链接,那么用户将如何达到内容此链接,如果它不是从浏览器打开.
我尝试了这个,但它打开了谷歌搜索,而不是带我去游戏商店.
请指导我如何使用深层链接?并使用深层链接访问应用程序.
表现
<intent-filter>
<data android:scheme="myapp" android:host="video/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
Run Code Online (Sandbox Code Playgroud)
ini*_*333 10
一个快速的解决方案是在线访问 HTML 编辑器,例如这个:https : //htmledit.squarefree.com/
并将您的链接粘贴到那里。就像是:
<a href="fb://mygroup">My Facebook Group</a>
Run Code Online (Sandbox Code Playgroud)
编辑器将为您创建链接,您可以点击它并使用移动设备上的深层链接。
好像你的应用程序配置不正确.
要测试深层链接而不是浏览器,您可以使用ADB:https://developer.android.com/training/app-indexing/deep-linking.html(查看测试深层链接部分)
$ adb shell am start
-W -a android.intent.action.VIEW
-d <URI> <PACKAGE>
Run Code Online (Sandbox Code Playgroud)
如果一切正常,那么浏览器可能会出现问题.
要配置您的应用以处理深层链接,请阅读:https://developer.android.com/training/app-links/index.html
如果您需要更多信息,请从AndroidManifest.xml发布您的配置:如何处理深层链接.
只需在您的 android studio 终端上执行此命令
adb shell am start -d deeplink
Run Code Online (Sandbox Code Playgroud)
例子:
adb shell am start -d rm://settingpage/v1
Run Code Online (Sandbox Code Playgroud)
此外,此过程会生成 html 和 CSS 代码,可以在 WYSIWYG 编辑器中使用。
| 归档时间: |
|
| 查看次数: |
8571 次 |
| 最近记录: |