作者lovelycateye (我还想要更多力量)
看板AndroidDev
标题[闲聊] Android 4.4 BitmapFactory Bug?
时间Tue Apr 29 10:18:31 2014
在 Android 4.4 时,
如果 BitmapFactory 重复使用同一个 InputStream 去进行 decode 会回传 null。
就算第一次只是拿去用 inJustDecodeBounds 也一样。
每次要重复使用前都要做 is.reset();
例如以下情况
https://gist.github.com/CateyesLin/11389142#file-gistfile1-java
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 118.99.182.225
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/AndroidDev/M.1398737920.A.D7B.html