title: Android Error: Out of memory
body: <p>I used HTML to show pictures in TextView, the following codes are to load pictures. Now I have an error named "out of memory".</p>
  
  <p>I think the reason is that I did not free the memory in Destory() of that activity, but how can I free them?</p>
  
  <p>Please help, thanks!</p>
  
  <pre><code>final Html.ImageGetter imageGetter = new Html.ImageGetter() {
  
      public Drawable getDrawable(String source) {
          Drawable drawable = Drawable.createFromPath(source);
          drawable.setBounds(0, 0, 400,500);//drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
  
          return drawable;
      }
  };
  
  tv_show.setText(Html.fromHtml(html.toString(), imageGetter, null));
  </code></pre>