android - Can't receive broadcasts for PACKAGE intents -
I am trying to register a broadcast receiver to receive broadcast events for package events. The code in the manifest file and my receiver is low. The log statement is never made, but I can clearly see the same broadcast flight for "homeloaders" (launcher) debug statement. What am I missing?
Public class intent listener broadcasts Broadcast receivers {@ Override Public Records on Recieve (Context Reference, Intent of Intent) {// Tudo Auto-Generated Method, Stub Log.i ("Int. Listener: ", Intent.getAction ()); }} & Lt; Receiver Android: name = "IntentListener" Android: enabled = "true" android: exported = "true" & gt; & Lt; Intent-Filter & gt; & Lt; Data Android: scheme = "package" & gt; & Lt; / Data & gt; & Lt; Action Android: name = "android.intent.action.PACKAGE_ADDED" & gt; & Lt; / Action> & Lt; Action Android: name = "android.intent.action.PACKAGE_ADDED" & gt; & Lt; / Action> & Lt; Action Android: name = "android.intent.action.PACKAGE_CHANGED" & gt; & Lt; / Action> & Lt; / Intent-Filter & gt; & Lt; / Receiver & gt;
It is possible that the code registerReiver ()
.
Comments
Post a Comment