How do I convert this path
/ storage / emulated / 0 / Download / images (10) .jpg
that is in String a File
How do I convert this path
/ storage / emulated / 0 / Download / images (10) .jpg
that is in String a File
You can occupy the following:
Uri.fromFile(new File("/storage/emulated/0/Download/images(10).jpg")
or
File file = new File("/storage/emulated/0/Download/images(10).jpg");
From the route:
String path = "/storage/emulated/0/Download/images (10).jpg"
You would create a file using the File class:
File f = new File(path);
String path = "/storage/emulated/0//Android/data/com.mydblib/databases/test.db"
File f = new File(path);