CursorLoader with startManagingCursor()

Ashokchakravarthi Nagarajan picture Ashokchakravarthi Nagarajan · Oct 29, 2013 · Viewed 11.8k times · Source

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 this method calling, so what am I supposed to do ?

Answer

Anup Cowkur picture Anup Cowkur · Oct 29, 2013

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:.