在按照书籍:第一行代码学习时,关于隐式Intent方面的学习中提到:
"我们可以在标签中配置一个标签,用于指定当前活动能响应什么类型的数据。"
所以在AndroidManifest.xml中修改新建的Activity的注册信息:
<activity android:name=".ThirdActivity">
<intent-filter>
<action android:name=
"android.intent.action.VIEW" />
<category android:name=
"android.intent.category.DEFAULT"/>
<data android:scheme="http" />
</intent-filter>
</activity>
然而这样做,Android-Studio会报错:
Issue id: AppLinkUrlError
Activity supporting ACTION_VIEW is not set as BROWSABLE less... (Ctrl+F1)
Inspection info:Ensure the URL is supported by your app, to get installs and traffic to your app from Google Search
这是为什么呢?