How to avoid this message in Android?

Up vote 1 down vote favorite share g+ share fb share tw.

I get the below error message in android. Finalizing a Cursor that has not been deactivated or closed. Database = /data/data/com.example.

Recipie/databases/recipedbase. Db, table = recipes, query = SELECT DISTINCT title FROM recipes WHERE title="Mysore Pa" android.database.sqlite. DatabaseObjectNotClosedException: Application did not close the cursor or database object that was opened here at android.database.sqlite.SQLiteCursor.(SQLiteCursor.

Java:210) I have added this in my code. But Also I get the above message. Kindly help.

:) @Override protected void onDestroy() { super.onDestroy(); rDbHelper.close(); } android link|improve this question asked Aug 16 '10 at 14:44Santosh V M126112 70% accept rate.

– Santosh V M Aug 16 '10 at 14:45 Yes - since the message says so ;) – ZeissS Aug 16 '10 at 14:55.

– Santosh V M Aug 16 '10 at 14:58 1 You should take a look to startManagingCursor and stopManagingCursor at this link : developer.android.com/reference/android/...) – fedj Aug 16 '10 at 15:03 2 I have closed my cursor and db.. But still im facing the same issue – jennifer Feb 2 '11 at 8:36.

In my case, I implement moveToFirst() method before fetching the data. If you still get the error, please make sure that your query get record set.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions