CursorLoader with startManagingCursor()

后端 未结 1 408
深忆病人
深忆病人 2020-12-19 12:46

I use CursorLoader in my App, to do DB transactions.

My app also has the method calling startManagingCursor(), which is deprecated.

I just want to replace th

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-19 13:27

    startManagingCursor() is deprecated because it does operations on the main thread which can freeze up the UI and deliver a poor user experience. You should use a CusrorLoader with a LoaderManager instead. Check out this tutorial series from Alex Lockwood for detailed instructions:.

    0 讨论(0)
提交回复
热议问题