Performance & Crash Debugging

ActivityNotFoundException: Resolve the Intent and Provide a Fallback

ActivityNotFoundException occurs when an intent cannot be handled as requested. The target may be absent, the action/data combination may not match, or an explicit component name may be wrong.

By Updated 2 min read

Distinguish explicit and implicit intents

An explicit intent names a component; an implicit intent describes an action and optional data/type. Check the exact values before adding manifest filters randomly.

The manifest reference explains component declarations. A misspelled class name or component excluded from the selected build variant cannot be repaired by changing the caller's MIME type.

Verify the requested capability

Intent detail Common mismatch
Action Receiver expects another action
URI scheme No installed app supports it
MIME type Too specific or inconsistent with the data
Explicit component Package/class absent or renamed
Categories Filter does not match the request

Use a real supported test target and also test a device without that target installed.

Account for package visibility

Android package visibility can affect queries about installed handlers. A query result and the ability to attempt an activity launch are related but not identical APIs; follow the documented rules for the operation.

Do not request broad package visibility merely to avoid understanding a narrow intent contract.

Provide a safe fallback

Catch the launch failure at the user-action boundary and offer a meaningful alternative, such as choosing another supported app or explaining that no compatible handler is available.

Avoid silently losing a file or leaving a disabled button after the failed launch. Keep any temporary URI permission limited to the intended recipient and operation.

Test installed and missing-handler states

APKLint's Manifest Checker can inspect declared components and filters, but it cannot know which apps are installed on a user's device. The acceptance test must include the exact intent on relevant devices, including the no-handler case and the selected release variant.

Sources and further reading

  1. Android Developers: App manifest overview
  2. Android Developers: Package visibility

Reference review: 22 September 2026. Examples illustrate the workflow; check your installed versions, release artifact and account-specific Console requirements before applying them. This guide is not a claim that APKLint executed your project or verified your private account.

APKLint

Android inspection tools and practical release guides. About APKLint · Report a correction