I used content resolver to get a picture from Gallery, get the DATA column and the path is like /storage/emulated/0/downloads/foo.jpg.
Then I created a file based on that path, File testFile = new File(path); //path = "/storage/emulated/0/downloads/foo.jpg" Then I tried testFile.exists() call to make sure the file exists, it does. Then I tiried to open this file FileInputStream inStream = new FileInputStream(testFile), it throws Exception (open failed: ENOENT (No such file or directory)) I did declare "READ_EXTERNAL_STORAGE" permission in my app. How should I resolve this? I did try to CanonicalPath, etc, they all report the same thing. Any help? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

