We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i try to make new File object from returned Uri, i got error No Such File or Directory. How can i fix this ?
The text was updated successfully, but these errors were encountered:
I use this function to convert uri to real path, while contentURI is the uri passed from bsimagepicker
private String getRealPathFromURI(Uri contentURI) { String result=contentURI.getPath(); Cursor cursor = getActivity().getContentResolver().query(contentURI, null, null, null, null); if (cursor == null) { // Source is Dropbox or other similar local file path result = contentURI.getPath(); } else { if (cursor.moveToFirst()) { result = cursor.getString(cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA)); } cursor.close(); } return result; }
Sorry, something went wrong.
No branches or pull requests
when i try to make new File object from returned Uri, i got error No Such File or Directory. How can i fix this ?
The text was updated successfully, but these errors were encountered: