Thanks, that's how I originally had it. I must have misinterpreted the exceptions I was getting. It's working now. Thanks!
On Nov 23, 4:15 pm, Mark Murphy <[email protected]> wrote: > junker37 wrote: > > Ah, I am closing the database, because I thought I was getting > > exceptions if I didn't. > > > I have a method: Cursor getCursor() which opens the database, performs > > the query, closes the database and returns the cursor. Is that not > > how I should be doing it? > > No. Open your database in onCreate(), close it in onDestroy(), so it > will be open for the lifespan of the Cursor. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > Android App Developer Training:http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

