SergKlimov / flickr-viewer-for-honeycomb

Automatically exported from code.google.com/p/flickr-viewer-for-honeycomb
0 stars 0 forks source link

BitmapFactory changes #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/android/issues/detail?id=8488

according to the issue report in android sdk code line, need to update our code 
with the comments below to avoid the potential OOM error:

------------------------------------
use BitmapFactory.decodeFileDescriptor instead of decodeStream/decodeFile. It 
worked for me.

I believe there is a bug in the native methods used in decodeStream and 
decodeFile. BitmapFactory.decodeFileDescriptor uses different native call: 
nativeDecodeFileDescriptor() than the others. 
------------------------------------

Original issue reported on code.google.com by charle...@gmail.com on 22 Sep 2011 at 8:33