summaryrefslogtreecommitdiffstats
path: root/samples/RandomMusicPlayer
diff options
context:
space:
mode:
authorChris Banes <chrisbanes@google.com>2013-02-07 14:02:46 +0000
committerChris Banes <chrisbanes@google.com>2013-02-13 13:19:09 +0000
commit3b7f23f8818d496c4afea597e0b5158a481131ed (patch)
treefd2a34ffe3b901a0bf489c9e42fca1799e0b65b8 /samples/RandomMusicPlayer
parent4d6574e878e2af2f19b46b28b28748ba2786e05a (diff)
downloadandroid_development-3b7f23f8818d496c4afea597e0b5158a481131ed.tar.gz
android_development-3b7f23f8818d496c4afea597e0b5158a481131ed.tar.bz2
android_development-3b7f23f8818d496c4afea597e0b5158a481131ed.zip
bitmapfun: Add support to use inBitmap option
This adds support for devices running Honeycomb or newer to use the inBitmap BitmapFactory option when decoding images. The way it accomplishes this is by adding a second level 'memory cache' using SoftReferences. When an item is removed from the LruCache it is added to this SoftReference Set. The next time an image is decoded, the Set is searched to see if it contains a bitmap that can be re-used. Change-Id: I8f980160ddc7116731b25e6f3f110c38f207f286 Signed-off-by: Chris Banes <chrisbanes@google.com>
Diffstat (limited to 'samples/RandomMusicPlayer')
0 files changed, 0 insertions, 0 deletions