First thanks for your response.Ye,I start my new Thread from my
activity, But the new thread does sth very important,and it should
never be killed by the System as long as my activity is alive ,Any way
i can get the message when the system killed my thread ??
On Mar 2, 12:28 pm, Jon Colverson <[email protected]> wrote:
> On Mar 2, 3:32 am, Ashrotronics <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---