I'm developing with API level 8 on android 2.2
I read this about the life cycle of an android app : http://developer.android.com/reference/android/app/Activity.html but there is no comments about the hibernation state and how to handle it correctly...
when I switch off the device (and when my app is still running) the os calls the onDestroy method... and when I switch on the device my app start from the beginning, the os calls the onCreate method...
it could be better that the os calls only the onPause / onResume on hibernation, no ?
I look about Angry Birds on android and it is still living when the device switch on, they don't reload textures or anything else like one instant...
so how to do the same ? :)
add in the manifest xml file :
thx to Chris & to all