convert file to uri android kotlin site:stackoverflow.com code example Example: create file from uri File(uri.getPath());