androidx.cursoradapter:cursoradapter

Official Description: The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.

CommonsWare’s Notes

This library contains an “unbundled” copy of the CursorAdapter abstract class and key subclasses, such as SimpleCursorAdapter. Here, “unbundled” means that these originated as framework classes, but this library contains its own independent copy of them, in a new Java package. This way, the classes can be updated more frequently than Android devices get updated.

CursorAdapter is a bit of legacy code for working with the old Adapter family of views — ListView, GridView, etc. CursorAdapter is an Adapter that adapts Cursor objects, such as you might obtain from a SQLiteDatabase or a ContentProvider query.

In modern Android app development, CursorAdapter is not used much. Mostly, that is because the Adapter classes are not used much, as many of them have been supplanted by RecyclerView. Also, we are often using other data storage APIs, such as Room, where we do not have Cursor objects to use.

Documentation

Versions