Mark Wyszomierski wrote: > From the map activity, the user may create a new Activity to enter > some text let's say. Now the map activity is 'paused', but the > background thread is still trying to post messages to its Handler.
Stop the thread in onPause() and start a fresh thread in onResume(). > Will > the Handler respond at all, or will messages begin queuing up until > the user ends the text activity, returning back to the map activity? I'm not 100% certain, but my guess would be the messages queue up and will not get "handled" until the activity is brought back via onResume(). But you really should consider stopping the thread in onPause() and starting a fresh thread in onResume(). If a call comes in, it might be hours before the user ever pops back to your activity. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the Ranch! -- Mar 16-20, 2009 http://www.bignerdranch.com/schedule.shtml --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

