Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# android.support.content\n\nadded in [version 27.1.0](/topic/libraries/support-library/revisions) \n\nandroid.support.content\n=======================\n\n| This package is part of the Android [support library](/topic/libraries/support-library) which is no longer maintained. The support library has been superseded by [AndroidX](/jetpack/androidx) which is part of [Jetpack](/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider [migrating](/jetpack/androidx/migrate) existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library [class\n| mappings](/jetpack/androidx/migrate/class-mappings).\n\nAnnotations\n-----------\n\n|-----------------------------------------------------------------------------------------------------|---|\n| [ContentPager.CursorDisposition](/reference/android/support/content/ContentPager.CursorDisposition) | |\n\nInterfaces\n----------\n\n|-----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| [ContentPager.ContentCallback](/reference/android/support/content/ContentPager.ContentCallback) | Callback by which a client receives results of a query. |\n| [ContentPager.QueryRunner](/reference/android/support/content/ContentPager.QueryRunner) | Implementations of this interface provide the mechanism for execution of queries off the UI thread. |\n| [ContentPager.QueryRunner.Callback](/reference/android/support/content/ContentPager.QueryRunner.Callback) | Callback that receives a cursor once a query as been executed on the Runner. |\n\nClasses\n-------\n\n|---------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ContentPager](/reference/android/support/content/ContentPager) | [ContentPager](/reference/android/support/content/ContentPager) provides support for loading \"paged\" data on a background thread using the [ContentResolver](https://developer.android.com/reference/android/content/ContentResolver.html) framework. |\n| [LoaderQueryRunner](/reference/android/support/content/LoaderQueryRunner) | A [ContentPager.QueryRunner](/reference/android/support/content/ContentPager.QueryRunner) that executes queries using a [LoaderManager](https://developer.android.com/reference/android/app/LoaderManager.html). |\n| [Query](/reference/android/support/content/Query) | Encapsulates information related to calling [query(Uri, String[], Bundle, CancellationSignal)](https://developer.android.com/reference/android/content/ContentResolver.html#query(android.net.Uri, java.lang.String[], android.os.Bundle, android.os.CancellationSignal)), including the logic determining the best query method to call. |\n| [R](/reference/android/support/content/R) | |\n| [R.attr](/reference/android/support/content/R.attr) | |\n| [R.bool](/reference/android/support/content/R.bool) | |\n| [R.color](/reference/android/support/content/R.color) | |\n| [R.dimen](/reference/android/support/content/R.dimen) | |\n| [R.drawable](/reference/android/support/content/R.drawable) | |\n| [R.id](/reference/android/support/content/R.id) | |\n| [R.integer](/reference/android/support/content/R.integer) | |\n| [R.layout](/reference/android/support/content/R.layout) | |\n| [R.string](/reference/android/support/content/R.string) | |\n| [R.style](/reference/android/support/content/R.style) | |\n| [R.styleable](/reference/android/support/content/R.styleable) | |\n\n-\n\n Annotations\n -----------\n\n - [ContentPager.CursorDisposition](/reference/android/support/content/ContentPager.CursorDisposition)\n-\n\n Interfaces\n ----------\n\n - [ContentPager.ContentCallback](/reference/android/support/content/ContentPager.ContentCallback)\n - [ContentPager.QueryRunner](/reference/android/support/content/ContentPager.QueryRunner)\n - [ContentPager.QueryRunner.Callback](/reference/android/support/content/ContentPager.QueryRunner.Callback)\n-\n\n Classes\n -------\n\n - [ContentPager](/reference/android/support/content/ContentPager)\n - [LoaderQueryRunner](/reference/android/support/content/LoaderQueryRunner)\n - [Query](/reference/android/support/content/Query)\n - [R](/reference/android/support/content/R)\n - [R.attr](/reference/android/support/content/R.attr)\n - [R.bool](/reference/android/support/content/R.bool)\n - [R.color](/reference/android/support/content/R.color)\n - [R.dimen](/reference/android/support/content/R.dimen)\n - [R.drawable](/reference/android/support/content/R.drawable)\n - [R.id](/reference/android/support/content/R.id)\n - [R.integer](/reference/android/support/content/R.integer)\n - [R.layout](/reference/android/support/content/R.layout)\n - [R.string](/reference/android/support/content/R.string)\n - [R.style](/reference/android/support/content/R.style)\n - [R.styleable](/reference/android/support/content/R.styleable)"]]