public String getRealPathFromURI(Uri contentUri) {
String[] proj = { MediaStore.Images.Media.DATA };
Cursor cursor = managedQuery(contentUri, proj, null, null, null);
int column_index
= cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA);
cursor.moveToFirst();
return cursor.getString(column_index);
}
Thank you for reading this article Convert URI to real path format With URL http://x-tutorials.blogspot.com/2011/04/convert-uri-to-real-path-format.html. Also a time to read the other articles.
0 comments:
Write your comment for this article Convert URI to real path format above!