当前位置:首页 > 移动开发 > 正文

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>