title: To show a static html page in android
body: <p>I am trying to show an html file in my assets folder but in web view i am seeing white blank page. I got similar example from stackflow only.</p>
  
  <pre><code> public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
      final String mimeType="text/html";
      final String encoding="UTF-8";
      String htmlString="&lt;html&gt;&lt;body&gt;";
      Document doc;
      WebView wv= new WebView(this);
      Elements link = null;
  
  
      setContentView(wv);
      try{
          InputStream in=getAssets().open("myweb.html");
          byte[] buffer= new byte[in.available()];
          in.read(buffer);
          in.close();
          wv.loadData(new String(buffer), mimeType, encoding);
      }
      catch(IOException e)
      {
          Log.d("MyWebView", e.toString());
      }
  }
  </code></pre>