Stay organized with collections
Save and categorize content based on your preferences.
DeviceNotAssociatedException
open class DeviceNotAssociatedException : RuntimeException
An exception for a case when a given device was not android.companion.CompanionDeviceManager#associate to the calling app.
Summary
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,["# DeviceNotAssociatedException\n\nAdded in [API level 31](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDeviceNotAssociatedException\n============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/companion/DeviceNotAssociatedException \"View this page in Java\") \n\n```\nopen class DeviceNotAssociatedException : RuntimeException\n```\n\n|---|---|---|---|-----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||\n| | ↳ | [java.lang.Exception](../../java/lang/Exception.html#) |||\n| | | ↳ | [java.lang.RuntimeException](../../java/lang/RuntimeException.html#) ||\n| | | | ↳ | [android.companion.DeviceNotAssociatedException](#) |\n\nAn exception for a case when a given device was not android.companion.CompanionDeviceManager#associate to the calling app.\n\nSummary\n-------"]]