You are leaking the database object, not a cursor. I recommend you save the database object for reuse which will provide better performance. 25.02.2012 14:45 пользователь "Jagruti Sangani" < [email protected]> написал:
> Hello, > i have use the sqlite for android database and use the cursor for > collect the table data.At last i use the cursor.close();method.but > when i run my application then it will the error as below...so what > can i do.is it any solution for that. > > 2-25 10:24:41.919: E/Database(2851): close() was never explicitly > called on database '/data/data/com.example.android.sip/databases/ > sip_db.db' > > 2-25 10:24:41.919: E/Database(2851): > android.database.sqlite.DatabaseObjectNotClosedException: Application > did not close the cursor or database object that was opened here > > -- > 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 > -- 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

