• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Help with Leak - "SQLiteDatabase created and never closed"

o_r

Lurker
Jan 13, 2010
4
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
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones