How to avoid this message in Android
<p>I get the below error message in android.</p>

<p><strong>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)</strong></p>

<p>I have added this in my code. But Also i get the above message. Kindly help. :)</p>

<pre><code>@Override
    protected void onDestroy()
    {
        super.onDestroy();
        rDbHelper.close();
    }
</code></pre>
