On 4.0.3, Code below cause warning \"W/CursorWrapperInner(11252): Cursor finalized without prior close()\".
Uri uri = Uri.withAppendedPath(PhoneLookup.CO
This line of code returns a Cursor object:
getContentResolver().query(uri, null, null, null, null);
It's odd that you are performing a query but ignoring the result. The only purpose of performing a query is to get the results in a Cursor. You should store that into a variable like so:
Cursor cursor = getContentResolver().query(uri, null, null, null, null);
Then you can use the cursor to get whatever data you need and when you are done with it call:
cursor.close();
You can close the cursor in Activity#onDestroy()
or earlier, but you must close it before the Activity is completely finished or you will see this warning. This is because a Cursor is backed by memory in another process and you don't want to leak that memory.