> How do we get data from DB to the list?If I use setListAdapter I can get > data from DB like this : > 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_weekly, > notesCursor, from, to); > setListAdapter(notes); > > If use ls1.setList(); how to get data?
ls1.setAdapter(notes); -- Mark Murphy (a Commons Guy) http://commonsware.com _The Busy Coder's Guide to Android Development_ Version 2.0 Available! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---