안드로이드 개발 질문/답변
(글 수 45,052)
private void fillData() {
// TODO Auto-generated method stub
Cursor ddayCursor = mDbHelper.fetchAllNotes();
startManagingCursor(ddayCursor);
// Create an array to specify the fields we want to display in the list (only TITLE)
String[] from = new String[]{DdayDbAdapter.KEY_TITLE};
// and an array of the fields we want to bind those fields to (in this case just text1)
int[] to = new int[]{R.id.text1};
// Now create a simple cursor adapter and set it to display
ListAdapter dday = new SimpleCursorAdapter(this, R.layout.dday_row, ddayCursor, from, to);
setListAdapter(ddayCursor);
}
curcor adapter 를 사용하는데 setListAdapter에서 에러가 나네요..ㅠㅠ
고수분들 조언 부탁드릴게요
// TODO Auto-generated method stub
Cursor ddayCursor = mDbHelper.fetchAllNotes();
startManagingCursor(ddayCursor);
// Create an array to specify the fields we want to display in the list (only TITLE)
String[] from = new String[]{DdayDbAdapter.KEY_TITLE};
// and an array of the fields we want to bind those fields to (in this case just text1)
int[] to = new int[]{R.id.text1};
// Now create a simple cursor adapter and set it to display
ListAdapter dday = new SimpleCursorAdapter(this, R.layout.dday_row, ddayCursor, from, to);
setListAdapter(ddayCursor);
}
curcor adapter 를 사용하는데 setListAdapter에서 에러가 나네요..ㅠㅠ
고수분들 조언 부탁드릴게요