Skip to content

Avoid crash when no app can open an external link#4

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

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

Conversation

@jim-daf

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

Copy link
Copy Markdown

MainActivity opens out of scope links with startActivity. On a device with no matching app this throws ActivityNotFoundException and crashes the app.

This wraps the launch in a try/catch and shows a short message when nothing can open the link. Allowed pages still load in the WebView as before.

Closes #3

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 opening an out of scope link when no app can handle it

1 participant