Sujay Krishna Suresh wrote:
> hi mark...
>             can u give an example for option (2)??

Uh, I think option (2) was registering a receiver, then using
PackageManager to enable/disable it. If so, then I don't have any
example code -- I just found out about the technique myself a day or so
earlier at a Google I/O session.

However, PackageManager has a getPackageInfo() method, from which you
can get the receivers as, strangely, an array of ActivityInfo objects,
and you can set enabled/disabled properties on those objects.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Need Android talent? Ask on HADO! http://wiki.andmob.org/hado

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to