File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Android and the fly likes Android application lifecycle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Android application lifecycle" Watch "Android application lifecycle" New topic

Android application lifecycle

Derek Cram

Joined: Mar 08, 2009
Posts: 5
Hi Ed,

Do you detail and give example of the Android service/activity lifecycle in your book ?
I find the "singleTop", "singleTask" very confusing in Android. I still don't understand how to have 2 activities in background and put them on front when needed instead of create a new instance.

Ed Burnette
Ranch Hand

Joined: Jun 10, 2003
Posts: 142
I cover the application/activity lifecycle but not the service lifecycle. And only the simple things, not singleTop and singleTask, sorry. I haven't found a use for them yet.

Ed Burnette, Author of Hello Android
Blog: ZDNet's Dev Connection - Twitter: @eburnette
I agree. Here's the link:
subject: Android application lifecycle
It's not a secret anymore!