[android-developers] Re: When to close db connection on android?

2013-08-16 Thread al
http://stackoverflow.com/questions/4547461/closing-the-database-in-a-contentprovider https://groups.google.com/forum/#!msg/android-developers/NwDRpHUXt0U/jIam4Q8-cqQJ Am Dienstag, 21. Juni 2011 11:29:52 UTC+2 schrieb Jay: Hi, I am new to Android and I am looking at the Notepad Tutorial sample

Re: [android-developers] Re: When to close db connection on android?

2013-08-15 Thread Sayooj valsan
But what if you need to close the connection and you don't want to put it in the onDestroy, coz the onDestroy gets called when you change the orientation. We don't need to keep closing and opening the connection when ever the activity gets recreated. Also we need it such a way that the

Re: [android-developers] Re: When to close db connection on android?

2011-06-24 Thread Jay XU
Got it, thanks Michael. -Jay 2011/6/23 Michael Kuethe de02...@googlemail.com Hi Jay, no you just have to call the closing mechanism once. Normally during the onDestroy() event of last Activity that remains on the system. This is normally the launcher Activity. @Override protected

[android-developers] Re: When to close db connection on android?

2011-06-23 Thread Michael Kuethe
Hi Jay, no you just have to call the closing mechanism once. Normally during the onDestroy() event of last Activity that remains on the system. This is normally the launcher Activity. @Override protected void onDestroy() { Log.d(TAG, onDestroy fired!);