I have Uri for Image file.
I use this code for gets file path from Uri:
public String getRealPathFromURI(Uri contentUri) { Cursor cursor = null;
I think this should work. A generalized code for getting URI from path :
String path = yourAndroidURI.uri.getPath() File file = new File(new URI(path));