Don't hold static references to Activities or Views. You will run into 
memory issues and such.
But you could put your instance of ProgressBarThread  into a static 
reference that is accessible by Activity B.
Then Activity B can register/attach and de-register/detach to this 
background task as well during its lifecycle.
This would allow the ProgressBarThread to update both activities A and B.

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