title: How to add an image file in android studio and get its uri?
body: <p>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:</p>
  
  <pre><code>File file = new File(?????);
  Uri uri = Uri.fromfile(file);
  </code></pre>
  
  <p>What should I put inside the clause? I've tried "res:///"+R.drawable.image, but it doesn't work. Can someone help me?</p>