On Fri, Sep 30, 2011 at 4:27 AM, [email protected] <[email protected]> wrote: > I have a confuse about statically publishing a receiver in Manifest. > you know, if dynamically register a receiver, you need unregistered it > when it is not useful. But if register the receiver statically in > Manifest, we don't need unregistered it, So i want to know when system > will registered/unregistered it?
The receiver is registered when the package is added. The receiver is unregistered when the package is removed (e.g., the app is uninstalled). You can also enable/disable the receiver component through PackageManager, if you wish. > What the policy about system maintains the receivers? This sentence does not parse, sorry. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0 Available! -- 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

