我将我的 android 更新SDK到最新版本,现在它说startManagingCursor()是deprecated. 我需要帮助来更新我的代码以使用新的 CursorLoader.
private void fillData() {
Cursor notesCursor = mDbHelper.fetchAllNotes();
startManagingCursor(notesCursor);
NoteAdapter notes = new NoteAdapter(this, R.layout.notes_row, notesCursor);
setListAdapter(notes);
}
那么,startManagingCursor()旧的,如果新代码被翻译,它会是什么样子?