Catch ActivityNotFoundException
(file-manager) and display a meaningful error
#7113
Closed
3 tasks done
Labels
feature request
Issue is related to a feature in the app
Checklist
Describe the feature you want
There are currently many issues that say that an file-manager - that should be shipped by a "standard" android - is missing:
https://github.com/TeamNewPipe/NewPipe/search?o=desc&q=No+Activity+found+to+handle+Intent&s=created&type=issues
This is usually due to incomplete custom ROMs or because the user uninstalled it's file-manager.
Background: It reached my tipping-point when I got 2 new comment-notifications in #7076 within 12h as some people seem too be unable to read properly what I wrote a few comments above or search for the error.
Also sometimes the ACRA report seems to fail: #7076 (comment)
Anyway the missing file-manager usually results in a
ActivityNotFoundException
, e.g:android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT cat=[android.intent.category.OPENABLE] typ=*/* flg=0x43 (has extras) }
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.CREATE_DOCUMENT cat=[android.intent.category.OPENABLE] typ=application/zip flg=0x43 (has extras) }
It would be great if we could catch exceptions like those and show a dialog/toast that says something like "Unable to open file-manager... Is one installed?".
A simple try catch on certain code blocks should be enough 😄
Is your feature request related to a problem? Please describe it
https://github.com/TeamNewPipe/NewPipe/search?o=desc&q=No+Activity+found+to+handle+Intent&s=created&type=issues
How will you/everyone benefit from this feature?
Devs/Mods: Less issues that can have to investigated and closed as duplicates
Users: Faster knowledge of what causes the error → can fix it themselves
The text was updated successfully, but these errors were encountered: