Convert a file path to Uri in Android December 24, 2022 by Tarik Please try the following code Uri.fromFile(new File("/sdcard/sample.jpg"))