zoukankan      html  css  js  c++  java
  • Android 出现 activity supporting action_view is not set as browsable报错

    1         <activity android:name=".ThirdActivity">
    2             <intent-filter>
    3                 <action android:name="android.intent.action.VIEW"/>
    4                 <category android:name="android.intent.category.DEFAULT"/>
    5 
    6                 <data android:scheme="http"/>
    7             </intent-filter>
    8         </activity>

    初学者在学安卓的时候,在《第一行代码》中,出现

    Activity supporting ACTION_VIEW is not set as BROWSABLE less... (Ctrl+F1)
    Ensure the URL is supported by your app, to get installs and traffic to your app from Google Search. More info: https://g.co/AppIndexing/AndroidStudio

    需要再添加一个catagory BROWSABLE

            <activity android:name=".ThirdActivity">
                <intent-filter>
                    <action android:name="android.intent.action.VIEW"/>
                    <category android:name="android.intent.category.DEFAULT"/>
                    <category android:name="android.intent.category.BROWSABLE"/>
                    <data android:scheme="http"/>
                </intent-filter>
            </activity>
  • 相关阅读:
    CCCC 2020 酱油记
    CCPC 2020 威海 滚粗记
    IEEExtreme 2020 酱油记
    CCSP 2020 酱油记
    ICPC 陕西省赛 2020 游记
    CCPC 网络赛 2020 自闭记
    CSP 第20次认证 酱油记
    CSP-S 2019 酱油记
    NOI2019 退役记
    树链剖分入门
  • 原文地址:https://www.cnblogs.com/limn/p/9134400.html
Copyright © 2011-2022 走看看