On Mar 2, 3:32 am, Ashrotronics <030440...@163.com> wrote: > As is mentioned above,What i'm trying is to protect a sub- > thread,and keep it going on as long as the App that starts it is still > alive.In other words,If the system need more resources,Let it kill > both the App main thread and the sub-thread started from it,Instead of > just kill the sub-thread.Is there any way i can do this ?? > And another question here,The android system seems to be "rude",As > it killed my thread without telling me,even in the logs,Is this the > case ?
Are you starting the thread from an Activity? If you need a thread that continues to run when the Activity is no longer visible, then you should create it from a running Service. -- Jon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---