On Wed, Jun 8, 2011 at 3:00 PM, Diego Tori
<[email protected]> wrote:
> So I want to achieve the following: suppose I have one Activity in my
> app that generates an event that I want other Activities in my app's
> back stack to know about so they can react to it accordingly (i.e.
> update UI, refresh data via separate Thread, etc...). What strategies
> would I have to pursue in order to accomplish this?

Have them find out about the new information in onResume(). They do
not need the information before then, since they are not in the
foreground.

> Would I have to set up BroadcastReceivers and if so, how would I set
> up the receivers?

No.

> Also, for this case, would it make sense to register
> and un-register the receiver(s) in onCreate and onDestroy
> respectively, since using onResume and onPause would prevent it from
> listening in when receiving Activity is in the background?

No.

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

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

Reply via email to