title: Webview image fit screen in Android
body: <p>I load <code>a .jpg</code> in a <code>WebView</code>. My problem is that I found this: <a href="https://stackoverflow.com/questions/10395292/android-webview-scaling-image-to-fit-the-screen">Android WebView, Scaling Image to fit the screen</a></p>
  
  <p>and it doesn't work for me.</p>
  
  <p><strong>Here is my code:</strong></p>
  
  <pre><code>Display display = getWindowManager().getDefaultDisplay();
      int width= display.getWidth();
  
      Toast.makeText(getApplicationContext(), ""+width, Toast.LENGTH_LONG).show();
  
  
      String html = "&lt;html&gt;&lt;head&gt;&lt;title&gt;Example&lt;/title&gt;&lt;meta name=\"viewport\"\"content=\"width="+width+", initial-scale=0.65 \" /&gt;&lt;/head&gt;";
      html+= "&lt;body&gt;&lt;img width=\""+width+"\"&lt;img src=\""+"image.jpg"+"\" /&gt;&lt;/body&gt;&lt;/html&gt;";
  
  aboutText.loadDataWithBaseURL("file:///android_res/drawable/", html, "text/html","UTF-8" , null);
  </code></pre>