History log of /development/samples/training/bitmapfun/src/com/example/android/bitmapfun/util/ImageWorker.java
Revision Date Author Comments
5f51b7fb0caa695e2905545441979c5f0aa6f973 21-Feb-2013 Adam Koch <akoch@google.com> Bitmapfun Sample: Add some docs and clean up some method naming.

Change-Id: I12dc039b1084a8f1a27b47a5a516773ab4e1c2cb
3b7f23f8818d496c4afea597e0b5158a481131ed 07-Feb-2013 Chris Banes <chrisbanes@google.com> 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>
4d6574e878e2af2f19b46b28b28748ba2786e05a 04-Feb-2013 Chris Banes <chrisbanes@google.com> Update bitmapfun sample to call recycle()

A new sub-class of BitmapDrawable has been created which tracks
when it is being used or cached when running on Gingerbread or
older. A new ImageView subclass has been added to accomplish this,
as well as changes to the LruCache.

Change-Id: I95d3334684703aebb6b09fcd56194cf73e3c2dcf
Signed-off-by: Chris Banes <chrisbanes@google.com>
2e5555e04b1e78f2d6fc48e8069b33399a4cf028 28-Jan-2013 Adam Koch <akoch@google.com> Bitmapfun Sample: Fix bug where background image loading could hang

Background image loading is paused when the GridView is scrolling,
if the activity is destroyed during a scroll the image loading was
not unpaused causing it to remain running indefinitely. This change
makes sure the background image loading is unpaused.

Change-Id: Iad8093fc2af50fcfc1416c5d9089db0c064711cf
03ceb37f79e31626aaac5318b3143a2cfafaea42 08-Aug-2012 Adam Koch <akoch@google.com> Updating code sample for "displaying bitmaps efficiently" training class.
Changes:
-Use updated versions of ImageWorker & ImageCache from I/O 2012 app
-Use copied DiskLruCache from system (rather than custom)
-Use copied AsyncTask from system (to keep behavior consistent)
-Ensure no strict mode violations or lint errors
-Other misc bug fixes
-Move single-use static methods in Utils to corresponding class

Change-Id: If21e045db1e1a80391169f3c9c9258d48345ab6b
2bab0137e0af92c374d3efb2ed0e1d894981e015 30-Mar-2012 Adam Koch <akoch@google.com> Sample app for Android U class: Displaying Bitmaps Efficiently

Change-Id: I21da4e60f719b7159ada83894cca8d108bedd3d5