Trying to implement LoaderManager + CursorLoader.
In onFinish method adapter should swap its cursor
public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
// Swap the new cursor in. (The framework will take care of closing the
// old cursor once we return.)
mAdapter.swapCursor(data);
}
But swapCursor is available since API Level 11.
So how should I swap cursor in android API 10 ?
Compatibility Library has needed implementations.
It's http://developer.android.com/reference/android/support/v4/widget/SimpleCursorAdapter.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With