I'm now developing an app using android studio. Now I want to use an image file which is stored at my desktop. Then I also need its uri to do something. Now I put it in drawable file, but I don't know how to call it as a file and get its url. I think I should implement something like this:
File file = new File(?????);
Uri uri = Uri.fromfile(file);
What should I put inside the clause? I've tried "res:///"+R.drawable.image, but it doesn't work. Can someone help me?