Commit Graph

1572 Commits

Author SHA1 Message Date
Chet Haase
9c6fb05ed8 am 58cbe71c: am 8654b6c6: am 3ff1591c: am 28b127ec: New DevBytes animation demos
* commit '58cbe71cc434d787e54d3b3a1d7d86af9727857c':
  New DevBytes animation demos
2013-05-30 15:05:47 -07:00
Chet Haase
58cbe71cc4 am 8654b6c6: am 3ff1591c: am 28b127ec: New DevBytes animation demos
* commit '8654b6c6ac430c285d9ad5bc7999a1c5390efa61':
  New DevBytes animation demos
2013-05-30 15:03:54 -07:00
Chet Haase
3ff1591c5b am 28b127ec: New DevBytes animation demos
* commit '28b127ec1e5af575a74af679a8542042112d177e':
  New DevBytes animation demos
2013-05-30 15:00:20 -07:00
Chet Haase
28b127ec1e New DevBytes animation demos
Change-Id: Ib475ddb109e0e62f0f085b6591ca15af0b79f75b
2013-05-30 13:38:02 -07:00
Xavier Ducrohet
fae6eb7aa4 am 5f1aa33a: am 44bafdcc: Merge "DO NOT MERGE. Example code for FileProvider." into jb-mr1.1-ub-dev
* commit '5f1aa33aa321f61ba9b5cffbef6d80ae79c55455':
  DO NOT MERGE. Example code for FileProvider.
2013-05-13 11:44:39 -07:00
Xavier Ducrohet
44bafdcc06 Merge "DO NOT MERGE. Example code for FileProvider." into jb-mr1.1-ub-dev 2013-05-13 18:40:48 +00:00
Jeff Sharkey
739532e2c7 DO NOT MERGE. Example code for FileProvider.
Shows simple usage of FileProvider to share a private thumbnail
across process boundaries.  Also serves as sample code for javadoc
on FileProvider.

Bug: 7005318
Change-Id: I0ca12977a3832c7c2ac1c254d411a547ffee0a51
2013-05-13 11:38:44 -07:00
Scott Main
1aa17274e0 am a50fc7f1: am 138f3a31: add nav drawer sample
* commit 'a50fc7f10f92fa461441a671c5b6d8bb15e8fc61':
  add nav drawer sample
2013-05-10 13:39:44 -07:00
Scott Main
138f3a3139 add nav drawer sample
Change-Id: I561c7577554c587b4ecacfc6f22fc2beefce27b1
2013-05-10 13:16:09 -07:00
Adam Powell
b105894b1b am 2622ae27: am 98c5d4a2: Add Support4Demos examples for DrawerLayout and SlidingPaneLayout
* commit '2622ae27adefc16299deb611dc040bec5ad59c73':
  Add Support4Demos examples for DrawerLayout and SlidingPaneLayout
2013-04-19 09:23:31 -07:00
Adam Powell
98c5d4a228 Add Support4Demos examples for DrawerLayout and SlidingPaneLayout
Show basic usage of these two new widgets.

Change-Id: I1ec82041c198e2b2853a0d1eb07e0ab78dbea61c
2013-04-18 17:31:30 -07:00
Scott Main
e92f6467d0 am 35964ea6: am 449326f1: am d49fbdbc: add support library JAR to sample
* commit '35964ea619381ed65aa04ea2e5071ebaa1b56f92':
  add support library JAR to sample
2013-03-25 09:00:26 -07:00
Scott Main
d49fbdbcc1 add support library JAR to sample
Change-Id: I15c30e19606a0b3415d5883bced4c2f56fd703fa
2013-03-22 09:53:15 -07:00
Elliott Hughes
48f4a1f86e am 8c4c7b6a: Merge "Use H rather than k in date/time formats."
* commit '8c4c7b6a9851554371f94aef9f09813a7f0bc14e':
  Use H rather than k in date/time formats.
2013-03-20 09:47:31 -07:00
Adam Koch
5004577dba am 303c2c87: am 0a605d37: am 90808a36: am bc1a645f: Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It\'s a basic master/detail view with a list of contacts in the master and contact
* commit '303c2c87f893d144e6982f1b2ad097141fe25ea7':
  Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It's a basic master/detail view with a list of contacts in the master and contact name, photo and mailing addresses in the detail. This sample app is backward compatible to API level 7 and also optimized for all screen sizes.
2013-03-19 11:30:12 -07:00
Adam Koch
90808a363f am bc1a645f: Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It\'s a basic master/detail view with a list of contacts in the master and contact name, photo and mailing addresses in th
* commit 'bc1a645f26a30fd95e68043b608038537b7c798f':
  Contacts Provider Training Class - Sample App Initial Commit This is the sample app for the Contacts Provider Android training class. It's a basic master/detail view with a list of contacts in the master and contact name, photo and mailing addresses in the detail. This sample app is backward compatible to API level 7 and also optimized for all screen sizes.
2013-03-19 11:25:44 -07:00
Adam Koch
bc1a645f26 Contacts Provider Training Class - Sample App Initial Commit
This is the sample app for the Contacts Provider Android training
class. It's a basic master/detail view with a list of contacts in the
master and contact name, photo and mailing addresses in the detail.
This sample app is backward compatible to API level 7 and also
optimized for all screen sizes.

Change-Id: I83fe6beae9fd4c3fe710426b7dd0863e094cbc89
2013-03-19 12:40:00 -04:00
Elliott Hughes
da6181c891 Use H rather than k in date/time formats.
Bug: 8359981
Change-Id: Ica1741aafc801d017252f74189aca0946bed9a0f
2013-03-18 16:29:12 -07:00
Roman Nurik
573642d8e9 am f3084087: am ee77f868: am 85364937: Add InteractiveChart sample code for update to Gestures training class.
* commit 'f308408752736df3e67362584dbad5899ba58d71':
  Add InteractiveChart sample code for update to Gestures training class.
2013-03-11 16:29:03 -07:00
Roman Nurik
85364937ce Add InteractiveChart sample code for update to Gestures training class.
Change-Id: I1e245cd6735d54603174045ca557057763861469
2013-03-11 16:22:53 -07:00
Adam Koch
0ff44f0050 am 5f51b7fb: Bitmapfun Sample: Add some docs and clean up some method naming.
* commit '5f51b7fb0caa695e2905545441979c5f0aa6f973':
  Bitmapfun Sample: Add some docs and clean up some method naming.
2013-02-27 06:25:48 +00:00
Adam Koch
0c5b72b4dd am e826ee24: Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev
* commit 'e826ee24ecacce4ff8d7ff511c1d9101f665a1c8':
  Bitmapfun Sample: Add additional sample images.
2013-02-27 06:25:47 +00:00
Chris Banes
ac5a784467 am c5d5c3db: Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev
* commit 'c5d5c3db62354a51b90934511a1f8dd1c87e987f':
  bitmapfun: Add support to use inBitmap option
2013-02-27 06:25:46 +00:00
Adam Koch
323e1a4f89 am ddf2040c: am 985f6801: am 5f51b7fb: Bitmapfun Sample: Add some docs and clean up some method naming.
* commit 'ddf2040c2d12d5c1984363aff8ad24744f82b6e7':
  Bitmapfun Sample: Add some docs and clean up some method naming.
2013-02-21 14:24:54 -08:00
Adam Koch
ecc7357403 am d337bbbf: am d97830ca: am e826ee24: Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev
* commit 'd337bbbfa5ef29ad95c919a4b97bf4e4884ed533':
  Bitmapfun Sample: Add additional sample images.
2013-02-21 14:24:54 -08:00
Chris Banes
c11af55d12 am 2aac0a0a: am d2de640e: am c5d5c3db: Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev
* commit '2aac0a0a9d16fa494de17b64985517fc73836ca4':
  bitmapfun: Add support to use inBitmap option
2013-02-21 14:24:53 -08:00
Adam Koch
985f6801fc am 5f51b7fb: Bitmapfun Sample: Add some docs and clean up some method naming.
* commit '5f51b7fb0caa695e2905545441979c5f0aa6f973':
  Bitmapfun Sample: Add some docs and clean up some method naming.
2013-02-21 14:14:37 -08:00
Adam Koch
d97830ca46 am e826ee24: Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev
* commit 'e826ee24ecacce4ff8d7ff511c1d9101f665a1c8':
  Bitmapfun Sample: Add additional sample images.
2013-02-21 14:14:36 -08:00
Chris Banes
d2de640ee3 am c5d5c3db: Merge "bitmapfun: Add support to use inBitmap option" into jb-mr1-dev
* commit 'c5d5c3db62354a51b90934511a1f8dd1c87e987f':
  bitmapfun: Add support to use inBitmap option
2013-02-21 14:14:35 -08:00
Adam Koch
5f51b7fb0c Bitmapfun Sample: Add some docs and clean up some method naming.
Change-Id: I12dc039b1084a8f1a27b47a5a516773ab4e1c2cb
2013-02-21 11:00:19 -05:00
Adam Koch
e826ee24ec Merge "Bitmapfun Sample: Add additional sample images." into jb-mr1-dev 2013-02-21 14:03:07 +00:00
Adam Koch
ec4b4c4188 Bitmapfun Sample: Add additional sample images.
Add a larger number of sample images so it's easier to see the result
of the various bitmap optimizations.

Change-Id: Ieef04a1cd4dc6cf1fa165baa0a6f8d4750b58d71
2013-02-20 15:08:06 -05:00
Chris Banes
3b7f23f881 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>
2013-02-13 13:19:09 +00:00
Chris Banes
e6edd9322b am d3dc2b12: am 2a84299d: am f4535aee: Merge "Update bitmapfun sample to call recycle()" into jb-mr1-dev
# Via Android Git Automerger (2) and others
* commit 'd3dc2b12e21305685920d262cfdc093dfaf1da0b':
  Update bitmapfun sample to call recycle()
2013-02-07 09:25:08 -08:00
Chris Banes
2a84299d4d am f4535aee: Merge "Update bitmapfun sample to call recycle()" into jb-mr1-dev
# Via Android (Google) Code Review (1) and Chris Banes (1)
* commit 'f4535aee56bf564f962dbcbdc0ce03af98f0ebd4':
  Update bitmapfun sample to call recycle()
2013-02-07 09:15:44 -08:00
Chris Banes
4d6574e878 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>
2013-02-06 16:21:21 +00:00
Adam Koch
5d849d6f50 am 5f404299: am aa3687df: am 2e5555e0: Bitmapfun Sample: Fix bug where background image loading could hang
# Via Android Git Automerger (2) and Adam Koch (1)
* commit '5f4042990ac33bd05cd4e3f48935d6eb0dc552c9':
  Bitmapfun Sample: Fix bug where background image loading could hang
2013-02-04 09:06:34 -08:00
Adam Koch
aa3687df9e am 2e5555e0: Bitmapfun Sample: Fix bug where background image loading could hang
# Via Adam Koch
* commit '2e5555e04b1e78f2d6fc48e8069b33399a4cf028':
  Bitmapfun Sample: Fix bug where background image loading could hang
2013-02-01 13:27:32 -08:00
Adam Koch
2e5555e04b 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
2013-01-28 12:20:42 -05:00
Chet Haase
71459f1fe0 am fb198383: am 8c013aee: am 690af128: Cherrypick from Change-Id: I4ae984cf776604cede32b98db6b1eb3cb6c59c7e
* commit 'fb198383cc3c786ed303e49e29c8d0b86f38be73':
  Cherrypick from Change-Id: I4ae984cf776604cede32b98db6b1eb3cb6c59c7e
2013-01-15 11:05:58 -08:00
Chet Haase
8c013aeeec am 690af128: Cherrypick from Change-Id: I4ae984cf776604cede32b98db6b1eb3cb6c59c7e
* commit '690af1285c320a1d3fc31cc57414347c74bd8e1d':
  Cherrypick from Change-Id: I4ae984cf776604cede32b98db6b1eb3cb6c59c7e
2013-01-15 11:01:26 -08:00
Chet Haase
690af1285c Cherrypick from Change-Id: I4ae984cf776604cede32b98db6b1eb3cb6c59c7e
First set of demo apps for DevBytes videos

Change-Id: I696b184aaa8058f01c0369a173aae09e38a8cb08
2013-01-15 10:36:26 -08:00
Adam Koch
fe85cdde28 am 79f346a7: am ec5a8473: am b8a61acb: Bitmapfun Sample: Change cache memory calculation to use maxMemory()
* commit '79f346a78e35079cf390b7328cce1fbcaa0ce845':
  Bitmapfun Sample: Change cache memory calculation to use maxMemory()
2013-01-14 09:28:10 -08:00
Adam Koch
ec5a847325 am b8a61acb: Bitmapfun Sample: Change cache memory calculation to use maxMemory()
* commit 'b8a61acb072e03665b2c53c7fd049b5bbf5ed1d4':
  Bitmapfun Sample: Change cache memory calculation to use maxMemory()
2013-01-14 06:15:15 -08:00
Adam Koch
b8a61acb07 Bitmapfun Sample: Change cache memory calculation to use maxMemory()
When calculating memory cache size, use Runtime.maxMemory() instead
of getMemoryClass() which is a more accurate value of available VM
heap size.

Also bump target and build SDK to 17.

Bug: 7988323
Change-Id: I4b94688b3800d958ffbe03ee9a2a620982483d3d
2013-01-11 16:51:09 -05:00
Adam Koch
15493fd9c3 am 784be44a: am a1d11945: am 6acfaccc: Bitmapfun Sample: Fix inSampleSize selection and update dependencies
* commit '784be44a77ce4ec19824377260d93783071fd053':
  Bitmapfun Sample: Fix inSampleSize selection and update dependencies
2013-01-10 06:32:07 -08:00
Adam Koch
a1d11945fd am 6acfaccc: Bitmapfun Sample: Fix inSampleSize selection and update dependencies
* commit '6acfaccc5078e55a63d1c500bc0c28d432407e9e':
  Bitmapfun Sample: Fix inSampleSize selection and update dependencies
2013-01-10 06:26:41 -08:00
Adam Koch
6acfaccc50 Bitmapfun Sample: Fix inSampleSize selection and update dependencies
When computing inSampleSize, calculateInSampleSize() needs to compare
height/width ratios, rather than raw values.

Also updating support library JAR to latest version.

Bug: 7951398
Change-Id: Id15dbcc105bbd2bbf8e03883aeba780da6f807eb
2013-01-09 16:12:52 -05:00
Katie McCormick
b66af3b789 am 7c704705: am 1f152439: am 65cc8b78: Network sample: fix typo in manifest
* commit '7c704705ea2516fce940d1531715c7fdc83f6d42':
  Network sample: fix typo in manifest
2013-01-04 16:40:36 -08:00
Katie McCormick
1f1524395d am 65cc8b78: Network sample: fix typo in manifest
* commit '65cc8b78a8a3594911772c665d77fd6030d9fd51':
  Network sample: fix typo in manifest
2013-01-04 16:35:53 -08:00