notesCursor = mDbHelper.fetchAllNotes();
startManagingCursor(notesCursor);
String[] from = new String[]{NotepadDBAdapter.KEY_TITLE};
int[] to = new int[]{R.id.list_title};
notes = new SimpleCursorAdapter(this, R.layout.notes_row, notesCursor, from, to);
setListAdapter(notes);

浙公网安备 33010602011771号