编辑AndroidMainfest.xml文件中注册activity时,加入
<data android:scheme="http" />
时会报以下错误:Activity supporting ACTION_VIEW is not set as BROWSABLE
此时应再加入一行:
<category android:name="android.intent.category.BROWSABLE" />
把这个<activity>注册为BROWSABLE。
本文介绍在AndroidManifest.xml中注册activity时,如何正确设置http scheme和BROWSABLE category,避免Activity supporting ACTION_VIEW is not set as BROWSABLE错误。
编辑AndroidMainfest.xml文件中注册activity时,加入
<data android:scheme="http" />
时会报以下错误:Activity supporting ACTION_VIEW is not set as BROWSABLE
此时应再加入一行:
<category android:name="android.intent.category.BROWSABLE" />
把这个<activity>注册为BROWSABLE。
2144
426

被折叠的 条评论
为什么被折叠?