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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnActivityResultListener\n========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/preference/PreferenceManager.OnActivityResultListener \"View this page in Java\") \n\n```\ninterface OnActivityResultListener\n```\n\n|--------------------------------------------------------------------|\n| [android.preference.PreferenceManager.OnActivityResultListener](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [RingtonePreference](/reference/kotlin/android/preference/RingtonePreference) |-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------| | [RingtonePreference](/reference/kotlin/android/preference/RingtonePreference) | A [Preference](/reference/kotlin/android/preference/Preference) that allows the user to choose a ringtone from those on the device. | |\n\n*** ** * ** ***\n\n| **This interface was deprecated in API level 29.**\n|\n| Use the [AndroidX](https://developer.android.com/jetpack/androidx.html) [Preference Library](https://developer.android.com/reference/androidx/preference/package-summary.html) for consistent behavior across all devices. For more information on using the AndroidX Preference Library see [Settings](https://developer.android.com/guide/topics/ui/settings.html).\n\nInterface definition for a class that will be called when the container's activity receives an activity result.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [onActivityResult](#onActivityResult(kotlin.Int,%20kotlin.Int,%20android.content.Intent))`(`requestCode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `resultCode:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `data:` `[Intent](../content/Intent.html#)!`)` See Activity's onActivityResult. |\n\nPublic methods\n--------------\n\n### onActivityResult\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onActivityResult(\n requestCode: Int, \n resultCode: Int, \n data: Intent!\n): Boolean\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nSee Activity's onActivityResult.\n\n| Return ||\n|------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | Whether the request code was handled (in which case subsequent listeners will not be called. |"]]