This class was deprecated
in API level 30.
Applications should extend Activity themselves. This class is not compatible with
AppCompat, and the functionality it provides is not complex.
This class was deprecated
in API level 13.
Use the new Fragment and FragmentManager APIs
instead; these are also
available on older platforms through the Android compatibility package.
AlternativeMessageTransportService (AMTS) allows the default SMS app to handle the sending of a
message over a different transport (e.g. RCS etc.) other than the SMS or MMS.
An AutofillService is a service used to automatically fill the contents of the screen
on behalf of a given user - for more information about autofill, read
Autofill Framework.
This service can be implemented to interact between Telecom and its implementor
for making outgoing call with optional redirection/cancellation purposes.
This service can be implemented by the default dialer (see
TelecomManager.getDefaultDialerPackage()) or a third party app to allow or disallow
incoming calls before they are shown to a user.
If the default SMS app has a service that extends this class, the system always tries to bind
it so that the process is always running, which allows the app to have a persistent connection
to the server.
This class was deprecated
in API level 30.
For publishing direct share targets, please follow the instructions in
https://developer.android.com/training/sharing/receive.html#providing-direct-share-targets
instead.
An abstract service that should be implemented by any apps which either:
Can make phone calls (VoIP or otherwise) and want those calls to be integrated into the
built-in phone app.
This class was deprecated
in API level 30.
IntentService is subject to all the
background execution limits
imposed with Android 8.0 (API level 26). Consider using WorkManager
instead.
This class was deprecated
in API level 37.
The ODP APIs are deprecated and will not be supported in future Android releases.
There is no direct replacement API available. Developers currently integrated with these APIs
must cease further integration efforts. For comprehensive details regarding this deprecation and
the future roadmap of Privacy Sandbox on Android, please consult the official Privacy Sandbox
developer documentation and announcements:
https://privacysandbox.google.com
OffHostApduService is a convenience Service class that can be
extended to describe one or more NFC applications that are residing
off-host, for example on an embedded secure element or a UICC.
This class was deprecated
in API level 29.
Use the AndroidX
Preference Library for consistent behavior across all devices. For more information on
using the AndroidX Preference Library see
Settings.
This class was deprecated
in API level 28.
Use the AndroidX
Preference Library for consistent behavior across all devices. For more information on
using the AndroidX Preference Library see
Settings.
A Service is an application component representing either an application's desire
to perform a longer-running operation while not interacting with the user
or to supply functionality for other applications to use.
Dynamically specifies the summary (subtitle) and enabled status of a preference injected into
the list of app settings displayed by the system settings app
For use only by apps that are included in the system image, for preferences that affect multiple
apps.
This class was deprecated
in API level 35.
Slice framework has been deprecated, it will not receive any updates from
ERROR(/android.os.Build.VANILLA_ICE_CREAM) and forward. If you are looking for a
framework that sends displayable data from one app to another, consider using
AppSearchManager.
This class was deprecated
in API level 13.
New applications should use Fragments instead of this class;
to continue to run on older devices, you can use the v4 support library
which provides a version of the Fragment API that is compatible down to
Build.VERSION_CODES.DONUT.
This method was deprecated
in API level 35.
Since API level 14 this is superseded by
ComponentCallbacks2.onTrimMemory.
Since API level 34 this is never called.
If you're overriding ComponentCallbacks2#onTrimMemory and
your minSdkVersion is greater than API 14, you can provide
an empty implementation for this method.
public abstract void onConfigurationChanged (Configuration newConfig)
Called by the system when the device configuration changes while your
component is running. Note that, unlike activities, other components
are never restarted when a configuration changes: they must always deal
with the results of the change, such as by re-retrieving resources.
At the time that this function has been called, your Resources
object will have been updated to return resource values matching the
new configuration.
This method was deprecated
in API level 35.
Since API level 14 this is superseded by
ComponentCallbacks2.onTrimMemory.
Since API level 34 this is never called.
If you're overriding ComponentCallbacks2#onTrimMemory and
your minSdkVersion is greater than API 14, you can provide
an empty implementation for this method.
This is called when the overall system is running low on memory, and
actively running processes should trim their memory usage. While
the exact point at which this will be called is not defined, generally
it will happen when all background process have been killed.
That is, before reaching the point of killing processes hosting
service and foreground UI that we would like to avoid killing.
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 2026-03-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-26 UTC."],[],[]]