Search code examples
androidsqliteandroid-listviewlistadapterandroid-cursor

Large data from SQLite on ListView


If CursorAdapter is deprecated, what's the recommended way to manage large data in a ListView?

After API level 11 there's LoaderManager. But apparently you need to use it together with CursorAdapter?

Is there a newer way?


Solution

  • CursorAdapter is not deprecated. The constructor CursorAdapter(Context context, Cursor c) is. You just need to use the other constructor CursorAdapter(Context context, Cursor c, int flags).