How to launch browser to open local file
<p>I'm trying to send intent to browser to open local file. I wish to use default browser to open this file. </p>

<pre><code>if(file.exists()){
  Log.d(TAG, "file.exists");
  Intent intent = new Intent(Intent.ACTION_VIEW, Uri.fromFile(file));
  context.startActivity(intent);
}
</code></pre>

<p>But it throws me and exeption</p>

<pre><code>08-10 13:27:58.993: ERROR/AndroidRuntime(28453): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///sdcard/release_notes.htm }
</code></pre>

<p>If I use following intent browser opens google.com as expected</p>

<pre><code>Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://google.com"));
</code></pre>

<p>Also when I write the file url <code>(file:///sdcard/release_notes.htm)</code> to browser address bar it opens it as expected.</p>
