title: opening local html file with Android Browser
body: <p>i'm trying to open a local html file using the default browser using the following code:</p>
  
  <pre><code>Uri uri = Uri.fromFile(file);
  Intent browserIntent = new Intent(Intent.ACTION_VIEW).setData(uri);
  startActivity(browserIntent);
  </code></pre>
  
  <p>but i'm getting the following exception:</p>
  
  <pre><code>android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=file:///sdcard/SolveDroid/solution.html }
  </code></pre>
  
  <p>i'm confused - should i create an activity to hande the web beowser? isn't it supposed to just call its activity?</p>
  
  <p>please advise :)</p>
  
  <p><strong>UPDATE:</strong>
  the same code works if i pass a URL like so:
   <code>Uri uri = Uri.parse("http://www.metalist.co.il");</code></p>