Can't open unscanned files via intent
Checklist
- [x] I can reproduce the bug with the latest version given here.
- [x] I made sure that there are no existing issues - open or closed - to which I could contribute my information.
- [x] I made sure that there are no existing discussions - open or closed - to which I could contribute my information.
- [x] I have read the FAQs inside the app (Menu -> About -> FAQs) and my problem isn't listed.
- [x] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
- [x] This issue contains only one bug.
- [x] I have read and understood the contribution guidelines.
Affected app version
1.0.0
Affected Android/Custom ROM version
Android 14
Affected device model
OnePlus 9 Pro
How did you install the app?
GitHub releases
Steps to reproduce the bug
Pre-requisite: ensure that Music Player has been opened at least once and has some scanned media in it.
- Create or download any music file in a directory visible in Music Player. Don't turn on Music Player at this moment, so the file isn't scanned.
- From a file management app, open that file in Music Player
Expected behavior
The app should play the file.
Actual behavior
The file isn't played. Instead, another file from the device is played.
Additionally, a toast is shown with an error: Error: java.lang.NullPointerException: getStringValue(..) must not be null.
Screenshots/Screen recordings
No response
Additional information
No response
I have the same issue. It also displays the toast "An unknown error occured". Does somebody have a solution?
Does somebody have a solution?
None yet. As a workaround, you can try the 'Rescan media' option in the app.
Does somebody have a solution?
None yet. As a workaround, you can try the 'Rescan media' option in the app.
Yes, but it doesn't seem to scan some folders for music, for example my browser's download folder located in /storage/(external SD)/Android/data.
What Android version do you have?
Android 11 and above don't allow third-party apps to access those folders. More info: https://github.com/FossifyOrg/File-Manager/issues/16#issuecomment-1879995836
What Android version do you have?
Android 11 and above don't allow third-party apps to access those folders. More info: FossifyOrg/File-Manager#16 (comment)
I have Android 9.
Ah, that makes sense. The app relies on what is scanned by the system and the system does not scan those directories. Fossify Music Player can scan files manually but it was disabled on Android 9 and below here.
The easiest solution would be to configure your browser to download those files in a publicly accessible directory.
I went ahead and removed if (isQPlus()), and compiled from source. Now those files get scanned, but I'm still not able to open files via intent (it shows "An unknown error occured" toast).