Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android-Launcher应用程序在重新启动手机后中断_Android_Android Launcher_Android Reboot - Fatal编程技术网

Android-Launcher应用程序在重新启动手机后中断

Android-Launcher应用程序在重新启动手机后中断,android,android-launcher,android-reboot,Android,Android Launcher,Android Reboot,这是我的舱单: <application android:allowBackup="true" android:icon="@drawable/toto" android:label="@string/app_name" android:theme="@style/AppTheme" android:process=":app_process"> <activity android:name=".core.Main

这是我的舱单:

<application
    android:allowBackup="true"
    android:icon="@drawable/toto"
    android:label="@string/app_name"
    android:theme="@style/AppTheme"
    android:process=":app_process">
    <activity
        android:name=".core.Main"
        android:label="app_label"
        android:launchMode="singleTask"
        android:alwaysRetainTaskState="true">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <action android:name="android.nfc.action.TECH_DISCOVERED" />
            <category android:name="android.intent.category.LAUNCHER" />
            <category android:name="android.intent.category.HOME" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
        <meta-data
            android:name="android.nfc.action.TECH_DISCOVERED"
            android:resource="@xml/nfc_tech_filter" />
    </activity>

    <service android:name=".core.MessengerService"
        android:enabled="true"
        android:process=":app_process">
        <intent-filter>
            <action android:name="My_Messenger_Service"/>
        </intent-filter>
    </service>

    <receiver
        android:name=".core.BootReceiver"
        android:enabled="true"
        android:label="StartMyServiceAtBootReceiver">
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>
    </receiver>

</application>
但是我没有找到我的发射器的任何错误日志。如何跟踪此错误


有人能帮我吗?谢谢,

我添加了这个参数,效果很好

        android:clearTaskOnLaunch="true"
        android:clearTaskOnLaunch="true"