1

ブート関連の問題の開始を解決しようとしていますが、android.intent.action.BOOT_COMPLETED を持つ AndroidManifest.xml の多くの例と、そこに android.intent.category.HOME のカテゴリを持ついくつかの例に気付きました。2つの違い(ある場合)が何であるかを知っている人はいますか?

すなわち。

       <receiver android:name=".MartiniBootBroadCastReciever"
        android:enabled="true" android:exported="false"
        android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
        <intent-filter>
            <action                   android:name="android.intent.action.BOOT_COMPLETED" />
            <category android:name="android.intent.category.HOME" />
        </intent-filter>        
    </receiver>

        <receiver android:name=".MartiniBootBroadCastReciever"
        android:enabled="true" android:exported="false"
        android:permission="android.permission.RECEIVE_BOOT_COMPLETED"> 
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>    
    </receiver>
4

1 に答える 1

1

AFAIK、あなたの最初のものは間違っています。ブロードキャストには、AFAIKというBOOT_COMPLETEDカテゴリを含める必要はありません。

于 2011-02-06T20:14:26.213 に答える