You should stop the threads before leaving your activity, perhaps in the onStop or onDestroy method, depending on your requirements.
Thanks and Regards, Kumar Bibek http://tech-droid.blogspot.com On Dec 23, 9:00 pm, Pedro Veloso <[email protected]> wrote: > I've 2 activities in my app. One is the main one, the first one. The > second one has a handler, and I use threads to execute a given event > every 2 seconds or soo. > The problem is, when the user leaves the second activity by pressing > the back button, the application returns to the first activity, but > the second one still executes the Handlers. How do I make the second > activity stop completly after user presses the Back key? I've tried > changing the second activity Launch Mode, but with no luck.. -- 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

