android intent-filter 注册网页链接打开app

如下实现注册m.hao123.com的链接:

<intent-filter>
<category android:name="android.intent.category.BROWSABLE"/>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="https" android:host="m.hao123.com" />
</intent-filter>

posted @ 2018-05-02 11:00  Android开发8585  阅读(501)  评论(0编辑  收藏  举报