iPaulPro / aFileChooser

[DEPRECATED] Android library that provides a file explorer to let users select files on external storage.
Apache License 2.0
1.79k stars 847 forks source link

With USB it return null instead of path. #83

Open iavsm opened 8 years ago

iavsm commented 8 years ago

screenshot_20160818-172100 screenshot_20160818-172109

svenoaks commented 8 years ago

It is because FileUtils.getPath() can't get a path to it. In my app I openInputStream() on any uri I can't get a path to and copy into my apps private directory. If you don't really need a file system path you can use the InputStream directly or get a FileDescriptor with openFileDescriptor()and use it directly (much faster, no copying).