Stay organized with collections
Save and categorize content based on your preferences.
ActivityNotFoundException
open class ActivityNotFoundException : RuntimeException
This exception is thrown when a call to android.content.Context#startActivity or one of its variants fails because an Activity can not be found to execute the given Intent.
Summary
Public constructors
ActivityNotFoundException
ActivityNotFoundException()
ActivityNotFoundException
ActivityNotFoundException(name: String!)
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,["# ActivityNotFoundException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nActivityNotFoundException\n=========================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/content/ActivityNotFoundException \"View this page in Java\") \n\n```\nopen class ActivityNotFoundException : 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.content.ActivityNotFoundException](#) |\n\nThis exception is thrown when a call to android.content.Context#startActivity or one of its variants fails because an Activity can not be found to execute the given Intent.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [ActivityNotFoundException](#ActivityNotFoundException())`()` \u003cbr /\u003e |\n| [ActivityNotFoundException](#ActivityNotFoundException(kotlin.String))`(`name:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### ActivityNotFoundException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nActivityNotFoundException()\n``` \n\n### ActivityNotFoundException\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nActivityNotFoundException(name: String!)\n```"]]