This statement is not entirely true either: 

queryBroadcastReceivers will not return anything if using a PACKAGE_REPLACED 
intent alone. Same goes for many other intents in which it seems required 
to add specific scheme/type/data to get some results.

Not sure it's worth asking here: how do i gather all receivers that can 
handle PACKAGE_REPLACED intents?

pm.queryBroadcastReceivers(new Intent(Intent.PACKAGE_REPLACED, 
PackageManager.GET_INTENT_FILTERS | PackageManager.GET_DISABLED_COMPONENTS);

This returns nothing, whereas many apps are listening to this Intent in 
their Manifest.xml, Google Play Store for one.

On Friday, December 24, 2010 2:00:55 PM UTC+7, Dianne Hackborn wrote:
>
> PackageManager.queryBroadcastReceivers() returns all receivers declared in 
> application manifests matching a given Intent.  Note however that this will 
> not include receivers registered with Context.registerReceiver(); there is 
> currently no way to get information about those. 

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to