Hi,

Looking at the activity lifecycle diagram here
http://developer.android.com/guide/topics/fundamentals.html#actlife

I wonder, shouldn't onDestroy also be called if the process is killed
(the path on the left braching off from onPause - "Other Application
needs memory")?

Specifically I wonder when to open and close a SQLite database? Would
onCreate and onDestroy be the right place, or should it rather be
onResume and onPause?

Thanks!


Bjoern

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to