The documentation says:
This field was deprecated in API level 21. As of
Build.VERSION_CODES.LOLLIPOP, this is ignored. In
Build.VERSION_CODES.KITKAT and below, if this is set to true, then the
resulting bitmap will allocate its pixels such that they can be purged
if the system needs to reclaim memory. In that instance, when the
pixels need to be accessed again (e.g. the bitmap is drawn,
getPixels() is called), they will be automatically re-decoded.
So there should be no need to add this anymore...
... however, according to Romain Guy, it still makes sense when decodeByteArray()
is used:
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