startManagingCursor(cursor) deprecated method

断了今生、忘了曾经 提交于 2020-01-24 02:20:08

问题


I used this code:

Cursor c = cr.query(message, null, null, null, null);
startManagingCursor(c);

But startManagingCursor(c) is a deprecated method. How can i replace it?


回答1:


This method was deprecated in API level 11. Use the new CursorLoader class with LoaderManager instead; this is also available on older platforms through the Android compatibility package.

Check out this tutorial series.



来源:https://stackoverflow.com/questions/27207989/startmanagingcursorcursor-deprecated-method

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!