CursorLoader usage without ContentProvider

前端 未结 5 640

Android SDK documentation says that startManagingCursor() method is depracated:

This method is deprecated. Use the new CursorLoader class

5条回答
  •  无人共我
    2020-11-22 13:18

    The SimpleCursorLoader is a simple solution, however it doesn't support updating the loader when the data changes. CommonsWare has a loaderex library that adds a SQLiteCursorLoader and supports re-query on data changes.

    https://github.com/commonsguy/cwac-loaderex

提交回复
热议问题