after reading about the android lifecycle, i put some logging in my
current code --

I get --

Activity1.onCreate(null)
Activity1.onStart()
Activity1.onResume()
-- initiate gui action which causes startActivity(intent)
Activity2.onCreate(null)
Activity2.onStart()
Activity2.onResume()
Activity1.onStop()
-- press the home button
Activity2.onPause()
Activity2.onStop()
-- press the icon again
Activity1.onCreate(null)
Activity1.onStart()
Activity1.onResume()

My question is after i hit the home button, it looks like it didn't
call Activity1.onDestroy() -- fine, no problem.  But when I hit the
application icon again, it still didn't call it, which makes me think
there are two "tasks" running which have Activity1 as the root
activity.  Or am I missing something...

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