[android-developers] problem while updating UI from non-ui thread?
Hi,
I am updating my UI from background thread.
If i go to other activity while the request has already been sent to
server then it creates problem for me.
Activity1 and Activity2 are there.
I am on activity1 and it refreshes every 10sec.now suppose the
request has been sent to server but didnt get response in between i
just moved to activity2 and finishing activity1.
So the background thread try to update the UI of an activity that has
already finished.
I can set boolean flag for it.But apart from this patch is there any
good idea to prevent this.
--
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