문제

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 ?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top