1. Check out our companion app, Forums for Android! Download from Google Play

Help with Leak - "SQLiteDatabase created and never closed"

Discussion in 'Application Development' started by o_r, Jul 15, 2010.

  1. o_r

    o_r New Member
    Thread Starter
    5

    Jan 13, 2010
    4
    0
    5
    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...