Hi,

I'm using SimpleCursorAdapter for my listview. As shown in example
below:

Cursor notesCursor = myDbHelper.fetchDayPanelNotes(type, day);
        startManagingCursor(notesCursor);
        String[] from = new String[]{DataBaseHelper.KEY_NAME,
DataBaseHelper.KEY_ROOM, DataBaseHelper.KEY_TIME};

        int[] to = new int[]{R.id.text1, R.id.text2, R.id.text3};

        SimpleCursorAdapter notes =
            new SimpleCursorAdapter(this, R.layout.main_row,
notesCursor, from, to);
        setListAdapter(notes);


Now if on the runtime, i have to again query my DB, my cursor will get
updated. I want to know, how to update my ListView with the new cursor
values?

or setListAdapter(notes); will take care of showing new values of my
cursor?

or there is some other solution to this problem?

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