On Sep 17, 5:08 pm, Nanard <[email protected]> wrote:

> But when my Activity 'disapear'   (back button or other)  I would like
> to do some cleaning : clean my thread & temp files.
>
> I need to know when I 'quit' my Activity and when I call onStop()
> onDestroy()  only because I have a screen orientation change....

That's why I was recommending that you detect the push of the back
button and handle it explicitly, rather than only looking for its
effect of destroying/stopping/pausing your activity.

In terms of your broader goal, you need to be aware that once onPause
() has been called on you, you can be killed without any further lines
of your code being run.  Or you might not be.

If you can't handle a pause that might turn into death, then I think
you have to treat every pause as a death... though this isn't
recommended as it means unnecessary starts and stops.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to