Android Image Viewer from App
<p>I'm trying to launch an image which is written to my application directory with the builtin Android image viewer. This image has been written in a different part of the app to the app directory. When getting the following file:</p>

<p><code>super.getFilesDir() + "/current.png"</code></p>

<p>File.exists() returns true.</p>

<p>How can i launch the builtin Android image viewer to view this file?
Currently i'm doing:</p>

<pre><code>File f = new File(super.getFilesDir()+"/current.png");
uri = Uri.parse("file://"+super.getFilesDir()+"/current.png");
startActivity(new Intent(Intent.ACTION_VIEW, uri));
</code></pre>

<p>And it keeps churning out:</p>

<blockquote>
  <p>10-11 13:09:24.367:
  INFO/ActivityManager(564): Starting
  activity: Intent {
  act=android.intent.action.VIEW
  dat=file:///data/data/com.davidgoemans.myapp/files/current.png
  } 10-11 13:09:24.367:
  ERROR/myapp(2166): Exception
  occuredandroid.content.ActivityNotFoundException:
  No Activity found to handle Intent {
  act=android.intent.action.VIEW
  dat=file:///data/data/com.davidgoemans.myapp/files/current.png
  }</p>
</blockquote>

<p>irrespective of what i change the uri schema to ( eg, content://, file://, media://, image:// ).</p>
