Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

With USB it return null instead of path. #83

Open
iavsm opened this issue Aug 18, 2016 · 1 comment
Open

With USB it return null instead of path. #83

iavsm opened this issue Aug 18, 2016 · 1 comment

Comments

@iavsm
Copy link

iavsm commented Aug 18, 2016

screenshot_20160818-172100
screenshot_20160818-172109

@svenoaks
Copy link

svenoaks commented Oct 15, 2016

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants