PACKAGEインテントのための放送を受信することはできません。次にマニフェストファイルのコードと受信者を示します。ログの状態は決して起こりませんが、私は "HomeLoaders"(Launcher)のデバッグ文と同じブロードキャストを見ることができます。私は何が欠けていますか?は、私はパッケージイベントのブロードキャストイベントを受信するブロードキャストレシーバーを登録しようとしています
public class IntentListener extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
// TODO Auto-generated method stub
Log.i("INTENT LISTNER:", intent.getAction());
}
}
<receiver android:name="IntentListener" android:enabled="true" android:exported="true">
<intent-filter>
<data android:scheme="package"></data>
<action android:name="android.intent.action.PACKAGE_ADDED"></action>
<action android:name="android.intent.action.PACKAGE_ADDED"></action>
<action android:name="android.intent.action.PACKAGE_CHANGED"></action>
</intent-filter>
</receiver>
エラーがIntentListenerの代わりcom.android.samples.app.IntentListenerにすることができますか? – Zorb