This is the intended behavior.  See the docs starting here:

http://developer.android.com/guide/topics/fundamentals.html#procthread

On Fri, May 22, 2009 at 11:54 PM, olko <y.olkho...@gmail.com> wrote:

>
>
> Well, this is what I observe when I press the "back" button:
>
> In the main activity:
> - onPause() is called
> - onStop() is called
> - on Destroy() is called
>
> In the remote service:
> - onUnbind() is called (I unbind in onDestroy() of the main activity)
> - onDestroy() is called
>
> After that in the debugger:
> - main and three Binder threads (#1, 2, and 3) are still running
>
> Those threads will be running as long as I do not terminate them in
> the Debugger.
> Any ideas how to clean this?
>
>
> On May 21, 9:50 pm, Mike Hearn <mh.in.engl...@gmail.com> wrote:
> > Pressing the back button doesn't necessarily destroy the activity, it
> > just pauses it. Read the lifecycle docs to understand what you are
> > seeing.
> >
>


-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to