For the Intent, use whatever Intent you want to see if somebody will receive. queryBroadcastReceivers() is not to find *all* receivers -- it is to find if anything will receive a broadcast of a specific Intent.
For the flags, 0 or MATCH_DEFAULT_ONLY are the two most likely options. On Mon, Oct 11, 2010 at 11:24 PM, zachariahyoung <[email protected]> wrote: > I would like to know all of my broad cast receivers. The above > methods should to the trick but I'm not finding any good examples on > how to use it. > > > PackageManager packageManager = getPackageManager(); > > packageManager.queryBroadcastReceivers(intent, flags); > > What should enter for intent and flags? > > Thanks > > Zach > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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

