i’m using a SimpleCursorAdapter to fill my list like this:
adapter = new SimpleCursorAdapter(this, R.layout.fang_listlayout,
MainController.getInstance().getCursor(),
new String[] {"Foo", "Foo2"},
new int[] {R.id.foo1, R.id.foo2}, 0);
now i want to implement, when something in the Cursor changed i want to refesh the list content automatically.
how to implement this?
You can use the managedQuery() and reQuery() methods. But these methods have been depricated.
Cause you have another way to manage, cursor and list view, by CursorLoader api, please see following link:
http://developer.android.com/reference/android/content/CursorLoader.html