I think what happens is that the activity's state is saved, the activity is
destroyed, and then it is recreated with its saved state. This is the same
thing that happens when the home button is pressed and the app is reopened.

This just what I have come to understand, and may be wrong.

-----Original Message-----
From: Stanley.lei [mailto:xiaofeng.lei...@gmail.com] 
Sent: Friday, January 23, 2009 9:04 AM
To: Android Developers
Cc: jinnan....@gmail.com
Subject: [android-developers] Activity Issue on G1 phone


Hi all,

I met a very strange issue when I tested my application on G1 phone.

As usual method, I started a thread in an activity, and stopped the
thread in the onDestroy method. But to my surprise, when I tried to
slide down the keypad, the onDestroy method was called and the thread
was stopped, and more surprising thing was that the activity was still
alive and visible.

>From the activity's life cycle diagram,
http://code.google.com/android/reference/android/app/Activity.html, we
can see that onDestroy is called only before the activity is shut
down. But my activity is still active and visible!!!

Who could tell me what the hidden story is?

Any reply will be appreciated.

Thanks,

Stanley


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