Convert file: Uri to File in Android
What you want is… new File(uri.getPath()); … and not… new File(uri.toString()); Notes For an android.net.Uri object which is named uri and created exactly as in the question, uri.toString() returns a String in the format “file:///mnt/sdcard/myPicture.jpg”, whereas uri.getPath() returns a String in the format “/mnt/sdcard/myPicture.jpg”. I understand that there are nuances to file storage in Android. … Read more