[android-developers] Re: queryBroadcastReceivers setup

2010-10-12 Thread zachariahyoung
What should the prefix class be for MATCH_DEFAULT_ONLY?

On Oct 12, 5:36 am, Mark Murphy mmur...@commonsware.com wrote:
 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 zpyo...@gmail.com 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 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

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://github.com/commonsguyhttp://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 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


Re: [android-developers] Re: queryBroadcastReceivers setup

2010-10-12 Thread Mark Murphy
On Tue, Oct 12, 2010 at 8:03 AM, zachariahyoung zpyo...@gmail.com wrote:
 What should the prefix class be for MATCH_DEFAULT_ONLY?

MATCH_DEFAULT_ONLY is defined on PackageManager.

-- 
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 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