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 code 
> now. In the NotesDbAdapter class, it defines a close() method to close the  
> DatabaseHelper. However I cannot find this method get called anywhere. 
>
> So my question is when shall we close the DB connection. I suppose we 
> should call it in the onDestroy() mehod of each Activity class. Or will 
> Android framework will take care of this so we don't have to worry about 
> it? 
>
> Please advise. thanks.
>
>
> -Jay
>

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to