Tuesday, October 11, 2011

[android-developers] Re: SQLite concurrency

@Zsolt Vasvari Just a quick thought for you... Consider closing stuff like the database/database adapter in your onPause() method of the Activity. onPause is always called where onDestroy is called whenever, thus the database might still be "open" when it is expected to be closed. I tend to close close, unregister, etc.. stuff in the onPause and open, register them in the onResume methods.

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment