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>

猜你喜欢

转载自www.cnblogs.com/lzh-Linux/p/8979239.html