Downloaded SQLite database and leak warnings
问题 I've made an application that uses a downloaded SQLite database. To retrieve data in it I'm using a ContentProvider . When I need to read the database, I always (I've checked at least five times) use a code like this: Cursor c = getContext().getContentResolver().query(MyContentProvider.ITEMSURI, projection,where,null,null); if(c.moveToFirst()){ while(!c.isAfterLast()){ itemsList.add(cursorToItem(c)); c.moveToNext(); } } if(c!=null) c.close(); But I keep getting many errors like this (I make a