Sorry for that I can't understand the source code you give totally.
Did you have looked the sample in the Android named Notepad?
It use SimpleCursorAdapter.  Get cursor from NotesDbAdapter first.
and use setListAdapter() to set list. It only recognize the first ListView
of setContentView(R.layout.main) in onCreate method.

Is it possible to set two or more lists in this way?

here is source code about set list.

        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);

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to