CursorLoader with startManagingCursor()
Asked Answered
P

1

5

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 ?

Prismatoid answered 29/10, 2013 at 7:0 Comment(2)
If I don't use this method calling, It will not manage the cursor certainly.Prismatoid
My app was developed using CursorLoader but without LoadManager.Prismatoid
B
11

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

Bambino answered 29/10, 2013 at 7:20 Comment(1)
See an example of using CursorLoader on android.codota.com/scenarios/527f77cbda0a05bf241c648b/…Schafer

© 2022 - 2024 — McMap. All rights reserved.