Why would I ever NOT use BitmapFactory's inPurgeable option?

前端 未结 4 1739
臣服心动
臣服心动 2020-12-02 18:48

Android\'s BitmapFactory.Options.inPurgeable has been recommended in various places as a way to avoid OutOfMemory exceptions in Android 2.x and earlier (Android

4条回答
  •  鱼传尺愫
    2020-12-02 19:37

    This flag is currently completely ignored, that's the catch.


    Update by @slodge: please anyone who is reading this and seeing it as the correct answer also read the comments - 'This flag is currently completely ignored' is true in certain cases only - in other cases (e.g. when using decodeByteArray on downloaded data) then this flag is not ignored and is very, very useful

提交回复
热议问题