Stay organized with collections
Save and categorize content based on your preferences.
PreferenceManager.OnActivityResultListener
public
static
interface
PreferenceManager.OnActivityResultListener
android.preference.PreferenceManager.OnActivityResultListener
|
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
receives an activity result.
Summary
Public methods |
abstract
boolean
|
onActivityResult(int requestCode, int resultCode, Intent data)
See Activity's onActivityResult.
|
Public methods
onActivityResult
public abstract boolean onActivityResult (int requestCode,
int resultCode,
Intent data)
See Activity's onActivityResult.
Parameters |
requestCode |
int |
resultCode |
int |
data |
Intent |
Returns |
boolean |
Whether the request code was handled (in which case
subsequent listeners will not be called. |
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.OnActivityResultListener\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.OnActivityResultListener\n==========================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/preference/PreferenceManager.OnActivityResultListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nPreferenceManager.OnActivityResultListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------------|\n| android.preference.PreferenceManager.OnActivityResultListener |\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [RingtonePreference](/reference/android/preference/RingtonePreference) |------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [RingtonePreference](/reference/android/preference/RingtonePreference) | *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\nreceives an activity result.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract boolean` | ` `[onActivityResult](/reference/android/preference/PreferenceManager.OnActivityResultListener#onActivityResult(int,%20int,%20android.content.Intent))`(int requestCode, int resultCode, `[Intent](/reference/android/content/Intent)` data) ` See Activity's onActivityResult. |\n\nPublic methods\n--------------\n\n### onActivityResult\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract boolean onActivityResult (int requestCode, \n int resultCode, \n Intent data)\n```\n\nSee Activity's onActivityResult.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|-----------------|\n| `requestCode` | `int` \u003cbr /\u003e |\n| `resultCode` | `int` \u003cbr /\u003e |\n| `data` | `Intent` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|-----------------------------------------------------------------------------------------------------|\n| `boolean` | Whether the request code was handled (in which case subsequent listeners will not be called. \u003cbr /\u003e |"]]