6 Commits

Author SHA1 Message Date
Adam Koch
6f680f524a Displaying Bitmaps Efficiently Training - Change memory calculation
When calculating memory cache size, use Runtime.maxMemory() instead
of getMemoryClass() which is a more accurate value of available VM
heap size.

Bug: 7988323
Change-Id: Iaa9681a11aad5cad3857dfe76f0b8e4811b2243c
2013-01-11 16:53:37 -05:00
Adam Koch
0bb4dade30 Displaying Bitmaps Efficiently Training - Fix inSampleSize selection
When computing inSampleSize, calculateInSampleSize() needs to compare
height/width ratios, rather than raw values.

Bug: 7951398
Change-Id: I207f9abc2aae4cc569b406bac237e221d8e64d1e
2013-01-09 16:58:59 -05:00
Adam Koch
9977dddee3 Updates to "Displaying Bitmaps Efficiently" class.
Changes:
 -Updated code sample (see http://ag/214812)
 -Updated code snippets to match updated sample
 -Fixed <> in code snippets
 -Updated disk cache section
 -Some other minor updates

Change-Id: Id7ca4d161f165814d71f238f940b2c5bfbc220aa
2012-08-28 10:42:55 -04:00
Scott Main
50e990c64f Massive clobber of all HTML files in developer docs for new site design
Change-Id: Idc55a0b368c1d2c1e7d4999601b739dd57f08eb3
2012-06-21 21:27:30 -07:00
Scott Main
f90f4ed19c docs: fix more broken links
Change-Id: Ia5317f5ead8ac9810c893576596bd3a80f6ecbdb
2012-04-20 11:53:32 -07:00
Scott Main
153f8fe420 docs: Android U: Displaying Bitmaps Efficiently
Change-Id: I749f6dd82438fc0902b892e9b918243fc0a826d3
2012-04-04 17:45:24 -07:00