Help with Leak - "SQLiteDatabase created and never closed"


Last Updated:

  1. o_r

    o_r New Member This Topic's Starter

    Joined:
    Jan 13, 2010
    Messages:
    4
    Likes Received:
    0
    Hi all,

    I am new to java, can someone please help with the "Leak found" in my app?

    I get "SQLiteDatabase created and never closed" although I close all my databases and cursors.

    I think that the problem is the same as in http://androidforums.com/android-de...rinner-unable-close-database.html#post1127124

    But I have not created my own provider so can someone please help me implement the solution in my context?


    This is the sample from my code that I think is the problematic one:
    cursor = context.getContentResolver().query(
    android.provider.CallLog.Calls.CONTENT_URI, null,
    whereClause, null,
    android.provider.CallLog.Calls.DATE + " ASC");
    Thanks in advance,
    Ohad
     

    Advertisement

Share This Page

Loading...