Most visited

Recently visited

Added in API level 1

ActivityNotFoundException

public class ActivityNotFoundException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ android.content.ActivityNotFoundException


当调用 startActivity(Intent)或其某个变体失败时会抛出此异常,因为找不到活动来执行给定的Intent。

Summary

Public constructors

ActivityNotFoundException()
ActivityNotFoundException(String name)

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

ActivityNotFoundException

Added in API level 1
ActivityNotFoundException ()

ActivityNotFoundException

Added in API level 1
ActivityNotFoundException (String name)

Parameters
name String

Hooray!