sheets icon indicating copy to clipboard operation
sheets copied to clipboard

StorageSheet Folder Location

Open irvine752 opened this issue 4 years ago • 1 comments

I just noticed an issue when I was using the Storage Sheet. It seems to be stuck on this folder -> "/storage/emulated/0/". I can't seem to get any other folder or navigate to some other folder. I did give storage permission to the App.

I'm currently using a Samsung device with an SD Card. I was also using the sample.apk under the sample folder.

irvine752 avatar Dec 07 '21 06:12 irvine752

Adding android:requestLegacyExternalStorage="true" to manifest (application level) "fixes" the issue.

Currently directory.listFiles() returns an empty list on Android 10 and above because of the scoped storage enforcement.

I don't know if this can help, but You can "Use the ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION intent action to direct users to a system settings page where they can enable the following option for your app: Allow access to manage all files."

https://developer.android.com/training/data-storage/manage-all-files#all-files-access

See modern storage API too

https://google.github.io/modernstorage/

enricocid avatar Feb 20 '22 09:02 enricocid