Here it says that SimpleCursorAdapter
\'s API level 1 constructor is deprecated and the use of LoaderManager
and CursorLoader
is recommende
I know this thread is old, but you could just add a last parameter into the SimpleCursorAdapter object creation. Just add ", 0".
It's a flag that Android likes and the warning goes away.
Example:
SimpleCursorAdapter dataAdapter = new SimpleCursorAdapter(getApplicationContext(), R.layout.item_list_layout, cursor, fromDB(), toLayout(), 0);