title: Large images in WebView cause Out Of Memory
body: <p>I have activity that parses XML feed (with news) and loads parsed data (text and image url) in  WebView's, which are inside gallery widget.</p>
  
  <p>Something like this:</p>
  
  <pre><code>mimeType = "text/html";
  
  encoding = "utf-8";
  
  String html = "&lt;img src=\""
  + newsImageUrl.get(position)
  + "\" style=\"max-width:200px; max-height:200px;\" align=\"left\""
  + "/&gt;" + newsDescription.get(position);
  
  data.loadDataWithBaseURL("", html, mimeType, encoding, "");
  </code></pre>
  
  <p>Everything works fine, but sometimes inside news feed there is this BIG IMAGES. Well, they dont cause any problems unless you start to rotate a phone. And after couple of orientation changes we have happy Out Of Memory exception.</p>
  
  <p>Well, in Android, OOM is always hiding somewhere near Bitmas, that's why most people use BitmapFactory with inSampleSize, or something more exotic. Well, supposedly, I can  download and resample images, and then just load them from SD card. But for now I will try to avoid it. </p>
  
  <p>Anyway, the question is - what to do with large images when they are being loaded in WebView? Is there a way to resize them (not only visually)? Is there any way to clear memory occupied by WebView onOrientationChange (webview.freeMemory() doesn't really helps).</p>