I updated my android SDK
to the latest version, and now it says that startManagingCursor()
is deprecated
. I need help to update my code to use the new CursorLoader
.
private void fillData() {
Cursor notesCursor = mDbHelper.fetchAllNotes();
startManagingCursor(notesCursor);
NoteAdapter notes = new NoteAdapter(this, R.layout.notes_row, notesCursor);
setListAdapter(notes);
}
So, startManagingCursor()
is old, what would the new code look like, if it was translated?