[android-developers] ContentProvider onCreate() onDestroy()

2010-06-30 Thread Natanael Arndt
Hello, when writing a ContentProvider I have to implement the onCreate()-method, in which I establish my database connection. But to write the changes I made to the database I have to close the database on some point. Does something like a onDestroy()-method exist for ContentProviders or is the

Re: [android-developers] ContentProvider onCreate() onDestroy()

2010-06-30 Thread Dianne Hackborn
Content providers are never destroyed. They exist for the entire lifetime of their process. On Wed, Jun 30, 2010 at 2:19 AM, Natanael Arndt wrote: > Hello, > when writing a ContentProvider I have to implement the onCreate()-method, > in which I establish my database connection. > But to write t