aFileChooser icon indicating copy to clipboard operation
aFileChooser copied to clipboard

How to access External and Internal both Storage

Open pratikbutani opened this issue 11 years ago • 4 comments

Is there any way to use both External and Internal both path. how to achieve on Click of "Selelct a File"

pratikbutani avatar Nov 25 '14 10:11 pratikbutani

Hi! Did you solve this case?

rubdottocom avatar Jan 21 '15 15:01 rubdottocom

Did anyone solve this issue ??

riten7 avatar Sep 12 '16 05:09 riten7

One way is just start browsing at root "/" instead of getExternalStorageDirectory(), and let the user browse to the secondary sd card path (not really too good, since many users won't know where it is). This won't work on Android 7.0 though as you can't view the root directory.

There are various posts on stackoverflow on how to get paths to the primary and secondary storages, though none I have found are very good (they are all hackey). File explorer apps seem to be able to do it though, so if you found a reliable way you could make it so "Choose A File" loaded the paths to all the storages at the top directory instead of getExternalStorageDirectory()

svenoaks avatar Oct 15 '16 19:10 svenoaks

How did you solve the problem

Rebac3 avatar Mar 05 '18 03:03 Rebac3