I created a single-activity application that spawns a thread and binds to a socket. For demo purpose, I need to switch to other application through "return to home" key. After that I like to switch back to the original application.
I tried to click on my application again. Apparently the onCreate() is invoked again, and the newly spawned thread will fail to bind to the socket. That, (plus the output from "ps"), seems to suggest the previous instance still exists. How can I go back to the previous instance? Alternatively, I was thinking whenever my application becomes invisible I can try to terminate my application completely, instead of letting hang around and causes problem next time I click the app again. How do I do that? Would appreciate if you cc your reply to me directly. Thanks. Jun --~--~---------~--~----~------------~-------~--~----~ 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] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

