Note that there are some explanatory texts on larger screens.

plurals
  1. USVictor
    primarykey
    data
    text
    plurals
    1. CONow, that doesn't mean it's not a good idea to call `recycle()`, [since it seems to take a few passes](http://stackoverflow.com/a/4348208/143987) for the GC to decide to collect Bitmaps pre-3.0 and call their finalizers, and if you allocate too many or too large Bitmaps before the GC properly frees up unused ones, you will probably run into OutOfMemoryErrors. But, my answer to the original question (you **must** call recycle or you'll leak memory ) is still accurate, because Bitmaps pre-3.0 will *eventually* be GC'd even if you don't call recycle.
      singulars
    2. CO@Kevin: [This 2011 Google I/O talk by Android engineer Patrick Dubroy disagrees.](http://www.youtube.com/watch?v=_CruQY55HOk&feature=player_detailpage#t=699s) Yes, pre-3.0, Bitmaps allocated the memory for pixel data on the native heap (which I mentioned in my original post), with the true size of the Bitmap still being counted against your VM heap usage. However, they still can and will be garbage collected (eventually, assuming you're not holding a hard reference), at which point their finalizer will run and call through to a native method that `free`s the memory on the native heap.
      singulars
    3. COTextView doesn't support the iframe tag. To use it you'd need to implement a full blown WebView. Even then, you'd still need to tell the WebView to reload the iframe when the content changes, it won't automatically do that for you. But if you went down that route, you could simply reload the TextView's text by calling your getHtml method again.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload