Open kevinclevenger opened 3 years ago
Same problem here. Samsung Tab S7+, Android 11
I'll have a look at it. Although it might be difficult to fix for me in case it's connected to Android 11. Thanks for reporting this :)
Same on Android 11.
This is indeed due to heavy changes about which app can access which parts of the storage introduced in Android 11. So right now it is not possible to select the sd card in the file picker unless it's formatted as internal storage. I'll try to fix this.
Note to self: This might help.
@flackbash I'm experiencing this issue as well. How can I help?
Same issue here. Thanks for trying to fix it!
Galaxy S20+ 5G Android 11
@pjones very kind of you. So far, AA relies on getting the path to a directory that contains music. It sounds like this is not possible more with Android 11 (unless one requires heavy permissions). This means extensive structural changes are needed in order to fix this issue. Unfortunately, I don't have a lot of time on my hands at the moment so I haven't gotten around to fixing this yet. What could possibly take some work load off me is some pointers to code snippets that show how similar apps deal with these new Android 11 rules. Or of course if you're experienced in Android development and have a lot of free time feel free to give it a try and open a PR. Apart from that I think there's not much you can do right now, but thanks anyway :)
@meximan For you selecting SD card was working with AudioAnchor version 2.2.4 and with 2.2.5 not anymore? And you are on Android 11?
Can confirm on an S6 Lite running 11 you can only access /storage/emulated/0/
From looking around at other applications it looks like as of 11 you're meant to use the system filepicker to select directories which also handles dispensing permissions for the specific folders involved (c.f. https://developer.android.com/guide/topics/providers/document-provider)
edit: apparently this is called "scoped storage" and is how all programs are meant to access non-private files now.
As of android 11 the old file api got severely limited and is considered depricated.
Apps should use SAF instead.This should be a high priority task IMO since this makes the app basically unusable on modern devices
I agree, although "basically unusable" is a bit of an overstatement in my opinion. As long as you have your audio files in internal storage (or your SD card formatted as internal storage) everything works fine, right?
Its pretty common to store music and audio books on the sd card for easy transfer when switching phones or for easy transfer between pc + phone
Unless your phone manifacturer decided 0.1 mm of thinnes is more important than the years of history on sd cards...
Would it be possible to enable a text input field for a included folders? Because I restored the database and the folders on the SD-Card work just fine, I just cannot add a new one as I cannot add the path. But I would imaging that it might work, if I could just type the path instead.
I too have now upgraded to a phone with Android 11 and no longer have access to any files on my SD card when using AudioAnchor. :cry: The SD card is simply not shown as option when using the ‘add folder’ feature.
BTW, I also use Simple File Manager (F-Droid / source code). This has a very similar ‘select folder’ feature, where I can select folders and files on my SD card. I only had to give a ‘All files’ access permission to the app to make this work. So it’s certainly possible to request access to all files. I don’t know if this is of any help, but thought I would mention it.
Thanks for the link. I'll give this issue another look once I have more time on my hands (sadly, that might take a while) and check how it is solved in the Simple File Manager app, maybe that will help.
@hcmh Good to know! Although that would be a very dirty hack, but better than nothing of course.
I everyone, I hope you are doing well. I am still following this issue.
If it helps, Voice Audiobook Player allows accessing audiobooks on the SD card. Source code: https://github.com/PaulWoitaschek/Voice
I have been using Voice Audiobook Player for now, but it does not have anywhere near the awesome features that AudioAnchor has. Hope you have not given up on your great app!
I now have: Galaxy S20+ 5G Android 13
I have not given up on it, I'll give this issue another try when I have some more time on my hands. Probably beginning of April.
Update: I spent a holiday looking into this recently. However, the approach I followed where I tried to change as little of the general structure of AudioAnchor and its database as possible turned out to be very tedious, would require a ton of changes anyway and on top of that would likely severely impact performance.
The problem is not even mainly to be able to select directories from the external storage (that I solved), but to be able to (quickly) access these and their included files later on (e.g. in the MainActivity of the app, when you select an album in your library i.e. in the AlbumActivity, or when you select a track for playback, i.e. in the PlayActivity, so basically everywhere).
To solve this would probably take me a lot of time and frankly more time than I'm currently willing to put into it. Therefore, I'm afraid there won't be a solution to this issue in the foreseeable future (unless of course someone else takes it upon themselves to fix this :) ).
I can recommend formatting your SD card as internal storage. This should solve the issue and in my opinion comes with several advantages. But I understand that this is not a solution for everyone.
To solve this would probably take me a lot of time and frankly more time than I'm currently willing to put into it
I feel you. Thanks for everything you did so far on the app
Hello, are there any updates regarding external storage support?
Yes, I have read through #2 & #21. There's no point at which external storage becomes available. Voice, Smart Audiobook, Pulsar, Rocket, FoldPlay, etc all find external storage with no issues.
Android 11, Samsung s10e.