storage-chooser icon indicating copy to clipboard operation
storage-chooser copied to clipboard

The Storage you have chosen is not accessible. Message shown...

Open tatiya4 opened this issue 7 years ago • 4 comments

1 One of My Mobile Phone of Internal Storage shown in the dialog when i click on that the Message shows The Storage you have chosen is not accessible.My phone configuration is

DEVICE Device YUNICORN (YUNICORN) Manufacturer YU Device type Phone Device language English CPU make Mediatek CPU model MT6755M Native platform armeabi-v7a, armeabi, arm64-v8a RAM (MB) 4096 Screen size 1080 × 1920 Screen density (DPI) 480 OpenGL ES version 3.0 OS Android 6.0

2 i have also one question can we access usb drive from your storage chooser app i really need usb drive pl help me i am connecting usb drive using otg cable to the android device. as like path given by storage chooser app for storages can usb give that type of path or give me some link for reference.

tatiya4 avatar Jan 17 '18 07:01 tatiya4

Hi,

  1. The error is shown when library cannot access device storage size (ie. not readable). Make sure that storage is readable by other file explorers, if yes then, drop a comment here again.

  2. The USB OTG is a feature I want to add but cannot find a good way to integrate it with the library. Since this type of storage is dynamic and can be connected at one time and can be removed at anytime, the cases to handle these are more and has to be handled correctly. I'll make sure to find a way and comment here if I start implementing.

codekidX avatar Jan 21 '18 13:01 codekidX

I'm getting this on an Android 4.1.2 emulator.

mikedg1 avatar Feb 15 '18 02:02 mikedg1

Just a comment passing by. In my case, this exception appears as well when you don't ask for runtime permission dinamically on Android 6+.

So as mentioned in the README.MD of this library:

  • Be sure that You have asked for Runtime Permission from the user in the past to avoid read errors.
  • Permissions with "READ_EXTERNAL_STORAGE" and "WRITE_EXTERNAL_STORAGE" is enough for this library to work (in AndroidManifest.xml).

Or you will see the message:

image

sdkcarlos avatar Apr 21 '19 02:04 sdkcarlos

You may also want to add android:requestLegacyExternalStorage="true" in your manifest file.

AdisAlagic avatar Jun 07 '20 21:06 AdisAlagic