title: Force browser chooser when opening a local html file in Android
body: <p>Maybe this question or similar has been asked before, but I am really struggling for days now and couldn't find a precise answer and solution.. I have a local html file that I want to open with a browser chooser. So far I have this code:</p>
  
  <pre><code>File file = new File(Environment.getExternalStorageDirectory().toString() + File.separator + "index/index.htm");
      Uri webPageUri = Uri.fromFile(file);
  
  
      browserIntent = new Intent(Intent.ACTION_VIEW);
      browserIntent.setDataAndType(webPageUri, "text/html");
  
    chooserIntent = Intent.createChooser(browserIntent, "Choose your app:");
  
  if (browserIntent.resolveActivity(getPackageManager()) != null) {
                      startActivity(chooserIntent);
                  }  
  </code></pre>
  
  <p>which mostly gives me the html viewer and file/text editor as options. Additionally to this options, on some devices one browser option appears (for example opera).
  How to tell the chooser that my file is an html file, and force the browser chooser?
  Please share...</p>