Saturday, February 25, 2012

Re: [android-developers] database close error

please explain breifly i dont understand whatever you said me.plz tell me what can i do..

2012/2/25 Kostya Vasilyev <kmansoft@gmail.com>

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" <jagruti.sangani@inextrix.com> написал:

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment