Skip to content

Avoid crash when no app can open an external intent#1675

Open
jim-daf wants to merge 1 commit into
pulsejet:masterfrom
jim-daf:fix-external-link-crash
Open

Avoid crash when no app can open an external intent#1675
jim-daf wants to merge 1 commit into
pulsejet:masterfrom
jim-daf:fix-external-link-crash

Conversation

@jim-daf

@jim-daf jim-daf commented Jun 5, 2026

Copy link
Copy Markdown

MainActivity opens external intents from the WebView with startActivity(Intent(ACTION_VIEW, ...)). If the device has no app that can handle the intent this throws ActivityNotFoundException and crashes the app.

This wraps the launch in a try/catch and shows a short toast when nothing can open the link. The in app navigation is unchanged.

Closes #1674

@jim-daf jim-daf changed the title Avoid crash when no app can open an external link Avoid crash when no app can open an external intent Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Crash when an external link has no app to open it

1 participant