Stay organized with collections
Save and categorize content based on your preferences.
PreferenceManager.OnActivityDestroyListener
public
static
interface
PreferenceManager.OnActivityDestroyListener
android.preference.PreferenceManager.OnActivityDestroyListener
|
Known indirect subclasses
|
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 destroyed.
Summary
Public methods
onActivityDestroy
public abstract void onActivityDestroy ()
See Activity's onDestroy.
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.
[[["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 2025-02-10 UTC."],[],[],null,["# PreferenceManager.OnActivityDestroyListener\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) \nSummary: [Methods](#pubmethods) \n\nPreferenceManager.OnActivityDestroyListener\n===========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/preference/PreferenceManager.OnActivityDestroyListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nPreferenceManager.OnActivityDestroyListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------------|\n| android.preference.PreferenceManager.OnActivityDestroyListener |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [DialogPreference](/reference/android/preference/DialogPreference), [EditTextPreference](/reference/android/preference/EditTextPreference), [ListPreference](/reference/android/preference/ListPreference), [MultiSelectListPreference](/reference/android/preference/MultiSelectListPreference) |--------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [DialogPreference](/reference/android/preference/DialogPreference) | *This class was deprecated in API level 29. Use the [AndroidX](/jetpack/androidx) [Preference Library](/reference/androidx/preference/package-summary) for consistent behavior across all devices. For more information on using the AndroidX Preference Library see [Settings](/guide/topics/ui/settings).* | | [EditTextPreference](/reference/android/preference/EditTextPreference) | *This class was deprecated in API level 29. Use the [AndroidX](/jetpack/androidx) [Preference Library](/reference/androidx/preference/package-summary) for consistent behavior across all devices. For more information on using the AndroidX Preference Library see [Settings](/guide/topics/ui/settings).* | | [ListPreference](/reference/android/preference/ListPreference) | *This class was deprecated in API level 29. Use the [AndroidX](/jetpack/androidx) [Preference Library](/reference/androidx/preference/package-summary) for consistent behavior across all devices. For more information on using the AndroidX Preference Library see [Settings](/guide/topics/ui/settings).* | | [MultiSelectListPreference](/reference/android/preference/MultiSelectListPreference) | *This class was deprecated in API level 29. Use the [AndroidX](/jetpack/androidx) [Preference Library](/reference/androidx/preference/package-summary) for consistent behavior across all devices. For more information on using the AndroidX Preference Library see [Settings](/guide/topics/ui/settings).* | |\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 destroyed.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onActivityDestroy](/reference/android/preference/PreferenceManager.OnActivityDestroyListener#onActivityDestroy())`() ` See Activity's onDestroy. |\n\nPublic methods\n--------------\n\n### onActivityDestroy\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onActivityDestroy ()\n```\n\nSee Activity's onDestroy.\n\n\u003cbr /\u003e"]]