Android SimpleCursorAdapter doesn't update when database changes

后端 未结 6 912
夕颜
夕颜 2020-11-28 04:48

I have an Android ListActivity that is backed by a database Cursor through a SimpleCursorAdapter.

When the items are clicked,

6条回答
  •  半阙折子戏
    2020-11-28 05:05

    I am not clear if you set the autoRequery property of CursorAdapter to true.

    The adapter will check the autoRequery property; if it is false, then the cursor will not be changed.

提交回复
热议问题