Stay organized with collections
Save and categorize content based on your preferences.
PreferenceManager.OnActivityStopListener
public
static
interface
PreferenceManager.OnActivityStopListener
android.preference.PreferenceManager.OnActivityStopListener
|
This interface 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.
Interface definition for a class that will be called when the container's activity
is stopped.
Summary
Public methods
onActivityStop
public abstract void onActivityStop ()
See Activity's onStop.
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,["# PreferenceManager.OnActivityStopListener\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n29](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nPreferenceManager.OnActivityStopListener\n========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/preference/PreferenceManager.OnActivityStopListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nPreferenceManager.OnActivityStopListener\n`\n\n\n`\n\n\n`\n\n|-------------------------------------------------------------|\n| android.preference.PreferenceManager.OnActivityStopListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\n\n**This interface was deprecated\nin API level 29.** \n\nUse the [AndroidX](/jetpack/androidx)\n[Preference Library](/reference/androidx/preference/package-summary) for consistent behavior across all devices.\nFor more information on using the AndroidX Preference Library see\n[Settings](/guide/topics/ui/settings).\n\nInterface definition for a class that will be called when the container's activity\nis stopped.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onActivityStop](/reference/android/preference/PreferenceManager.OnActivityStopListener#onActivityStop())`() ` See Activity's onStop. |\n\nPublic methods\n--------------\n\n### onActivityStop\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onActivityStop ()\n```\n\nSee Activity's onStop.\n\n\u003cbr /\u003e"]]