When a link in an article points to an audio or video file, ArticleWebViewClient shows a small dialog with Display, Download and Choose app. Picking Choose app builds an Intent.ACTION_VIEW with the media type and calls startActivity without a guard. If no app can handle that type the app crashes with ActivityNotFoundException.
The general link branch in the same method is already wrapped in a try/catch. The Choose app path for audio and video is not.
Guarding that launch the same way would keep the app running when no media app is installed.
When a link in an article points to an audio or video file,
ArticleWebViewClientshows a small dialog with Display, Download and Choose app. Picking Choose app builds anIntent.ACTION_VIEWwith the media type and callsstartActivitywithout a guard. If no app can handle that type the app crashes withActivityNotFoundException.The general link branch in the same method is already wrapped in a try/catch. The Choose app path for audio and video is not.
Guarding that launch the same way would keep the app running when no media app is installed.