[闲聊] Android 4.4 BitmapFactory Bug?

楼主: lovelycateye (我还想要更多力量)   2014-04-29 10:18:31
在 Android 4.4 时,
如果 BitmapFactory 重复使用同一个 InputStream 去进行 decode 会回传 null。
就算第一次只是拿去用 inJustDecodeBounds 也一样。
每次要重复使用前都要做 is.reset();
例如以下情况
https://gist.github.com/CateyesLin/11389142#file-gistfile1-java

Links booklink

Contact Us: admin [ a t ] ucptt.com