Monday, November 12, 2012

Re: [android-developers] Can dynamic broadcastreceiver receives intent from other apps

On Mon, Nov 12, 2012 at 12:53 PM, Jin <jiangjdf@gmail.com> wrote:
> So, does this mean that dynamic broadcastreceiver can only receive intent in
> its own "main application thread", and cannot receive intent from other
> apps?

No.

You can see a dynamic-registered BroadcastReceiver receiving
broadcasts from other processes in many places, such as this sample of
receiving ACTION_BATTERY_CHANGED:

https://github.com/commonsguy/cw-omnibus/tree/master/SystemEvents/OnBattery

--
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 Android Development_ Version 4.3 Available!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate