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

时间:2015-09-15 08:27:58

标签: 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"
        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默认启动器和我的启动器的默认启动器。

我尝试使用命令行获取logcat:

adb logcat -d > logcat.txt 

但我没有找到任何错误日志E /我的启动器。如何追踪此错误?

有人可以帮助我吗?谢谢,

1 个答案:

答案 0 :(得分:0)

我添加了这个参数并且有效

<div class="loading-progress"></div>