Hi
Here is code of filldata() in Notepadv3 sample.
Cursor notesCursor = mDbHelper.fetchAllNotes();
startManagingCursor(notesCursor);
String[] from = new String[]{NotesDbAdapter.KEY_TITLE};
int[] to = new int[]{R.id.text1};
SimpleCursorAdapter notes =
new SimpleCursorAdapter(this, R.layout.notes_row,
notesCursor, from, to);
setListAdapter(notes);
When I run it with debug, i found the value of from[] was "title",
I must use data from[] DB which just like common array(like this :
[title1][title2][title3]).
how to change from[] to normal array?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---