title: how to get an uri of an image resource in android
body: <p>I need to open an intent to view an image as follows:</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_VIEW);
  Uri uri = Uri.parse("@drawable/sample_1.jpg");
  intent.setData(uri);
  startActivity(intent);
  </code></pre>
  
  <p>The problem is that <code>Uri uri = Uri.parse("@drawable/sample_1.jpg");</code> is incorrect.</p>