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.v4.os\n\nadded in [version 22.1.0](/topic/libraries/support-library/revisions) \n\nandroid.support.v4.os\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\nInterfaces\n----------\n\n|-------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [CancellationSignal.OnCancelListener](/reference/android/support/v4/os/CancellationSignal.OnCancelListener) | Listens for cancellation. |\n| [ParcelableCompatCreatorCallbacks](/reference/android/support/v4/os/ParcelableCompatCreatorCallbacks)\\\u003cT\\\u003e | *This interface was deprecated in API level 26.1.0. Use [Parcelable.ClassLoaderCreator](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator.html) directly.* |\n\nClasses\n-------\n\n|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [BuildCompat](/reference/android/support/v4/os/BuildCompat) | This class contains additional platform version checking methods for targeting pre-release versions of Android. |\n| [CancellationSignal](/reference/android/support/v4/os/CancellationSignal) | Static library support version of the framework's [CancellationSignal](https://developer.android.com/reference/android/os/CancellationSignal.html). |\n| [ConfigurationCompat](/reference/android/support/v4/os/ConfigurationCompat) | Helper class which allows access to properties of [Configuration](https://developer.android.com/reference/android/content/res/Configuration.html) in a backward compatible fashion. |\n| [EnvironmentCompat](/reference/android/support/v4/os/EnvironmentCompat) | Helper for accessing features in [Environment](https://developer.android.com/reference/android/os/Environment.html). |\n| [LocaleListCompat](/reference/android/support/v4/os/LocaleListCompat) | Helper for accessing features in [LocaleList](https://developer.android.com/reference/android/os/LocaleList.html). |\n| [ParcelableCompat](/reference/android/support/v4/os/ParcelableCompat) | *This class was deprecated in API level 26.1.0. Use [Parcelable.ClassLoaderCreator](https://developer.android.com/reference/android/os/Parcelable.ClassLoaderCreator.html) directly.* |\n| [TraceCompat](/reference/android/support/v4/os/TraceCompat) | Writes trace events to the system trace buffer. |\n| [UserManagerCompat](/reference/android/support/v4/os/UserManagerCompat) | Helper for accessing features in [UserManager](https://developer.android.com/reference/android/os/UserManager.html) in a backwards compatible fashion. |\n\nExceptions\n----------\n\n|-------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|\n| [OperationCanceledException](/reference/android/support/v4/os/OperationCanceledException) | An exception type that is thrown when an operation in progress is canceled. |\n\n-\n\n Interfaces\n ----------\n\n - [CancellationSignal.OnCancelListener](/reference/android/support/v4/os/CancellationSignal.OnCancelListener)\n - [ParcelableCompatCreatorCallbacks](/reference/android/support/v4/os/ParcelableCompatCreatorCallbacks)\n-\n\n Classes\n -------\n\n - [BuildCompat](/reference/android/support/v4/os/BuildCompat)\n - [CancellationSignal](/reference/android/support/v4/os/CancellationSignal)\n - [ConfigurationCompat](/reference/android/support/v4/os/ConfigurationCompat)\n - [EnvironmentCompat](/reference/android/support/v4/os/EnvironmentCompat)\n - [LocaleListCompat](/reference/android/support/v4/os/LocaleListCompat)\n - [ParcelableCompat](/reference/android/support/v4/os/ParcelableCompat)\n - [TraceCompat](/reference/android/support/v4/os/TraceCompat)\n - [UserManagerCompat](/reference/android/support/v4/os/UserManagerCompat)\n-\n\n Exceptions\n ----------\n\n - [OperationCanceledException](/reference/android/support/v4/os/OperationCanceledException)"]]