Android 我的设备中的应用程序丢失(消失)

Android 我的设备中的应用程序丢失(消失),android,Android,当我在AndroidManifest中添加以下代码时,我的设备上的应用程序丢失(消失) <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:sch

当我在
AndroidManifest
中添加以下代码时,我的设备上的应用程序丢失(消失)

<intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="https"
                  android:host="www.example.com"
                  android:pathPrefix="/gizmos"/>

</intent-filter>

但我的问题还是不同的

编辑: 这是我所有的清单:

    <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.CAMERA" />
        <uses-feature android:name="android.hardware.camera" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
        <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
        <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

    <application
            android:allowBackup="true"
            android:fullBackupContent="true"
            android:icon="@mipmap/icon"
            android:label="@string/app_name"
            android:supportsRtl="true"
            android:theme="@style/AppTheme"
            android:screenOrientation="portrait">

            <activity android:name=".MainActivity"
                      android:theme="@style/FullScreenTheme"
                      android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
               <action android:name="android.intent.action.VIEW" />
               <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="https"
                  android:host="www.example.com"
                  android:pathPrefix="/gizmos"/>

    </intent-filter>

            <activity android:name=".AnimationScreenActivity"
                      android:theme="@style/FullScreenTheme"
                      android:screenOrientation="portrait"/>


            </activity>

        </application>

您没有正确关闭意图过滤器

    <activity android:name=".MainActivity"
                      android:theme="@style/FullScreenTheme"
                      android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
 </activity>

您没有正确关闭意图过滤器

    <activity android:name=".MainActivity"
                      android:theme="@style/FullScreenTheme"
                      android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
 </activity>


卸载应用程序并运行代码,有时旧包可能会被覆盖。

卸载应用程序并运行代码,有时旧包可能会被覆盖。

在@Harisali help之后,解决方案是将其分为两部分,如下所示:

<activity android:name=".MainActivity"
                  android:theme="@style/FullScreenTheme"
                  android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="https"
                      android:host="www.example.com"
                      android:pathPrefix="/gizmos"/>

       </intent-filter>
</activity>

在@Harisali help之后,解决方案是将其分成两部分,如下所示:

<activity android:name=".MainActivity"
                  android:theme="@style/FullScreenTheme"
                  android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

        <intent-filter>
            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="https"
                      android:host="www.example.com"
                      android:pathPrefix="/gizmos"/>

       </intent-filter>
</activity>



发布完整的androidmanifest.xml文件,请使用无效的格式“活动>意图过滤器>活动?”?1:您没有在正确的位置关闭意图过滤器。第二:我想错误是说你在“哈里萨利”之前没有使用任何活动,我只是在这里输入了错误的结束语,我在这里更正了它,但在我的代码中是正确的。请发布完整的androidmanifest.xml,甚至不是有效的格式活动>意图过滤器>活动???1:您没有在正确的位置关闭意图过滤器。第二:我认为错误显示您在“`@Harisali”之前没有使用任何活动,我只是在这里错误地键入了结束语,我在这里更正了它,但在我的代码中是正确的。我只是在这里错误地键入了结束语,我在这里更正了它,但在我的代码中是正确的。尝试像这样分离您的意图过滤器
,确实解决了我的问题。奇怪的是,我不得不用两个不同的意图过滤器将它分开,但它解决了我的问题。非常感谢。您的欢迎:)我刚才在这里输入了错误的结束语,我在这里更正了它,但在我的代码中是正确的。尝试像这样分离您的意图过滤器
,确实解决了我的问题。奇怪的是,我不得不用两个不同的意图过滤器将它分开,但它解决了我的问题。非常感谢。你的欢迎:)很高兴它帮助了你:)很高兴它帮助了你:)