Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

startManagingCursor(cursor) deprecated method

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?

like image 598
user3253955 Avatar asked Nov 29 '14 22:11

user3253955


1 Answers

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.

like image 139
Petr Duchek Avatar answered Sep 25 '22 16:09

Petr Duchek