当前位置: 代码迷 >> Android >> android listview 显示数据库内容有关问题
  详细解决方案

android listview 显示数据库内容有关问题

热度:60   发布时间:2016-04-28 07:13:15.0
android listview 显示数据库内容问题
The method requery() from the type Cursor is deprecated 和
The constructor SimpleCursorAdapter(Context, int, Cursor, String[], int[]) is deprecated
怎么解决

------解决方案--------------------
flag参数的值:
FLAG_AUTO_REQUERY
FLAG_REGISTER_CONTENT_OBSERVER
------解决方案--------------------
另外使用cursorAdapter的必须  字段中有一个主键是 _id  这是必须的。
  相关解决方案