title: WebView memory leak
body: <p>Sorry if this is some kind of duplicate question. I googled for about an hour but still have problems with the memory usage of the WebView component.</p>
  
  <p>I'm starting an Activity (NewsDetail) from a ListActivity to display a specific news article. The HTML-Code of the article is added into the WebView which is included in the Activity layout. (it also loads 1 or 2 images via <em>newsDetail.loadDataWithBaseURL()</em>)</p>
  
  <p>I'm starting the article Activity via:</p>
  
  <pre><code>Intent i = new Intent(getApplicationContext(), NewsDetail.class);  
  i.putExtra("position", position);
  startActivity(i);
  </code></pre>
  
  <p>After reading <a href="https://stackoverflow.com/questions/3130654/memory-leak-in-webview">this question</a>, I changed my Layout so that I add the WebView programmatically:</p>
  
  <pre><code>newsDetail = new WebView(getApplicationContext());
  </code></pre>
  
  <p>In my onDestroy method is set:</p>
  
  <pre><code>public void onDestroy(){
      super.onDestroy();
      newsDetail.destroy();
      newsDetail = null;
      finish();
      System.gc();
  }
  </code></pre>
  
  <p>After a while, the Garbage Collector reduce the amount of memory from about 4 MB to 2 MB. If I open/close several news articles it rises to a critical heap size. :/</p>
  
  <p>As mentioned, after destroying the activity, there's a rest of 2 MB left to the activity (which doesn't exist if I completely remove the WebView from the code). So it seems to have sth to do with the WebView itself.
  The same problem <a href="https://stackoverflow.com/questions/4395400/webview-building-up-the-memory-android">is mentioned here</a>.</p>
  
  <p>I also set:</p>
  
  <pre><code>android:noHistory="true"
  </code></pre>
  
  <p>Has anyone of you an idea how to completely get rid of memory usage of the "NewsDetail" Activity after returning to my ListActivity?
  Would be glad to hear any ideas, this is driving me crazy. Is there a chart for Android phones providing more than 16 MB heap size?</p>