Convert file path to Uri
File externalFile = new File(Environment.getExternalStorageDirectory(),"image.png");
Uri external = Uri.fromFile(externalFile);
Uri to file convert.
File f = new File(uri.toString());
File externalFile = new File(Environment.getExternalStorageDirectory(),"image.png");
Uri external = Uri.fromFile(externalFile);
Uri to file convert.
File f = new File(uri.toString());