Skip to content

Guard the external link launch in the web view - #4

Open
jim-daf wants to merge 1 commit into
allentown521:mainfrom
jim-daf:fix-webview-link-crash
Open

Guard the external link launch in the web view#4
jim-daf wants to merge 1 commit into
allentown521:mainfrom
jim-daf:fix-webview-link-crash

Conversation

@jim-daf

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

Copy link
Copy Markdown

This wraps the external link launch in the HTML5 web view so the app no longer crashes when there is no app available to open the link.

Before, the link was passed to startActivity directly, which throws ActivityNotFoundException on a device with no handler. With this change the link still opens when a handler exists, and otherwise the exception is caught and a short message is shown.

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.

External links can crash the app with ActivityNotFoundException

1 participant