# android.support.v4.content

added in[version 22.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

# android.support.v4.content

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

## Interfaces

|----------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|
| [Loader.OnLoadCanceledListener](https://developer.android.com/reference/android/support/v4/content/Loader.OnLoadCanceledListener)\<D\> | Interface that is implemented to discover when a Loader has been canceled before it finished loading its data. |
| [Loader.OnLoadCompleteListener](https://developer.android.com/reference/android/support/v4/content/Loader.OnLoadCompleteListener)\<D\> | Interface that is implemented to discover when a Loader has finished loading its data.                         |

## Classes

|-------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AsyncTaskLoader](https://developer.android.com/reference/android/support/v4/content/AsyncTaskLoader)\<D\>                                      | Static library support version of the framework's[AsyncTaskLoader](https://developer.android.com/reference/android/content/AsyncTaskLoader.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [ContentResolverCompat](https://developer.android.com/reference/android/support/v4/content/ContentResolverCompat)                               | Helper for accessing features in[ContentResolver](https://developer.android.com/reference/android/content/ContentResolver.html)in a backwards compatible fashion.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [ContextCompat](https://developer.android.com/reference/android/support/v4/content/ContextCompat)                                               | Helper for accessing features in[Context](https://developer.android.com/reference/android/content/Context.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [CursorLoader](https://developer.android.com/reference/android/support/v4/content/CursorLoader)                                                 | Static library support version of the framework's[CursorLoader](https://developer.android.com/reference/android/content/CursorLoader.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [FileProvider](https://developer.android.com/reference/android/support/v4/content/FileProvider)                                                 | FileProvider is a special subclass of[ContentProvider](https://developer.android.com/reference/android/content/ContentProvider.html)that facilitates secure sharing of files associated with an app by creating a`content://`[Uri](https://developer.android.com/reference/android/net/Uri.html)for a file instead of a`file:///`[Uri](https://developer.android.com/reference/android/net/Uri.html).                                                                                                                                                                                                                                              |
| [IntentCompat](https://developer.android.com/reference/android/support/v4/content/IntentCompat)                                                 | Helper for accessing features in[Intent](https://developer.android.com/reference/android/content/Intent.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [Loader](https://developer.android.com/reference/android/support/v4/content/Loader)\<D\>                                                        | Static library support version of the framework's[Loader](https://developer.android.com/reference/android/content/Loader.html).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Loader.ForceLoadContentObserver](https://developer.android.com/reference/android/support/v4/content/Loader.ForceLoadContentObserver)           | An implementation of a ContentObserver that takes care of connecting it to the Loader to have the loader re-load its data when the observer is told it has changed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [LocalBroadcastManager](https://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager)                               | Helper to register for and send broadcasts of Intents to local objects within your process.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [MimeTypeFilter](https://developer.android.com/reference/android/support/v4/content/MimeTypeFilter)                                             | Provides utility methods for matching MIME type filters used in ContentProvider.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [PermissionChecker](https://developer.android.com/reference/android/support/v4/content/PermissionChecker)                                       | This class provides permission check APIs that verify both the permission and the associated app op for this permission if such is defined.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [SharedPreferencesCompat](https://developer.android.com/reference/android/support/v4/content/SharedPreferencesCompat)                           | *This class was deprecated in API level 27.1.0. This compatibility class is no longer required. Use[SharedPreferences](https://developer.android.com/reference/android/content/SharedPreferences.html)directly.*                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [SharedPreferencesCompat.EditorCompat](https://developer.android.com/reference/android/support/v4/content/SharedPreferencesCompat.EditorCompat) | *This class was deprecated in API level 27.1.0. This compatibility class is no longer required. Use[SharedPreferences.Editor](https://developer.android.com/reference/android/content/SharedPreferences.Editor.html)directly.*                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [WakefulBroadcastReceiver](https://developer.android.com/reference/android/support/v4/content/WakefulBroadcastReceiver)                         | *This class was deprecated in API level 26.1.0. As of[Android O](https://developer.android.com/reference/android/os/Build.VERSION_CODES.html#O), background check restrictions make this class no longer generally useful. (It is generally not safe to start a service from the receipt of a broadcast, because you don't have any guarantees that your app is in the foreground at this point and thus allowed to do so.) Instead, developers should use android.app.job.JobScheduler to schedule a job, and this does not require that the app hold a wake lock while doing so (the system will take care of holding a wake lock for the job).* |

-

  ## Interfaces

  - [Loader.OnLoadCanceledListener](https://developer.android.com/reference/android/support/v4/content/Loader.OnLoadCanceledListener)
  - [Loader.OnLoadCompleteListener](https://developer.android.com/reference/android/support/v4/content/Loader.OnLoadCompleteListener)
-

  ## Classes

  - [AsyncTaskLoader](https://developer.android.com/reference/android/support/v4/content/AsyncTaskLoader)
  - [ContentResolverCompat](https://developer.android.com/reference/android/support/v4/content/ContentResolverCompat)
  - [ContextCompat](https://developer.android.com/reference/android/support/v4/content/ContextCompat)
  - [CursorLoader](https://developer.android.com/reference/android/support/v4/content/CursorLoader)
  - [FileProvider](https://developer.android.com/reference/android/support/v4/content/FileProvider)
  - [IntentCompat](https://developer.android.com/reference/android/support/v4/content/IntentCompat)
  - [Loader](https://developer.android.com/reference/android/support/v4/content/Loader)
  - [Loader.ForceLoadContentObserver](https://developer.android.com/reference/android/support/v4/content/Loader.ForceLoadContentObserver)
  - [LocalBroadcastManager](https://developer.android.com/reference/android/support/v4/content/LocalBroadcastManager)
  - [MimeTypeFilter](https://developer.android.com/reference/android/support/v4/content/MimeTypeFilter)
  - [PermissionChecker](https://developer.android.com/reference/android/support/v4/content/PermissionChecker)
  - [SharedPreferencesCompat](https://developer.android.com/reference/android/support/v4/content/SharedPreferencesCompat)
  - [SharedPreferencesCompat.EditorCompat](https://developer.android.com/reference/android/support/v4/content/SharedPreferencesCompat.EditorCompat)
  - [WakefulBroadcastReceiver](https://developer.android.com/reference/android/support/v4/content/WakefulBroadcastReceiver)