Skip to main content

Vincent Tsao's Library tagged bitmap   View Popular, Search in Google

May
19
2010

  • Android's decoders do not currently support partial data on decode. i.e. if the complete  data stream is not available, then they return failure. I will investigate trying to support  this in the future.
  • Thanks a lot for your quick reply!  As this error is very likely to occur when decoding an image from any stream issued from sockets (like for HTTP connections), is there any best practice I should consider with the existing API, insteed of my custom workaround?  FYI, decorating the stream with a BufferedInputStream (and any buffer size) is useless.
May
21
2009

  • It seems that there my be a bug, memory leak with the BitmapFactory 
    when decoding, and reading bitmaps from file. I, and many other 
    developers have noticed similar problems to what you describe. I 
    haven't been able to get any official confirmation that this is a 
    known bug, but it looks like a bug to me. I have been able to mitigate 
    this problem in my code by using bitmap.recycle and object pooling, 
    but I have not been able to get rid of this problem entrirely.
1 - 8 of 8
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo
Move to top