Commit Graph

1538 Commits

Author SHA1 Message Date
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
Scott Main
d49fbdbcc1 add support library JAR to sample
Change-Id: I15c30e19606a0b3415d5883bced4c2f56fd703fa
2013-03-22 09:53:15 -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
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
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
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
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
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
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
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
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
Katie McCormick
65cc8b78a8 Network sample: fix typo in manifest
Change-Id: I5731dbb89d17bd15bc72a2f140bca2915976b4c1
2013-01-04 16:04:23 -08:00
Joe Malin
fa8f593a2a am 50600ba5: am a525bf71: am 1e083591: am 2c063c88: Android Training: Threads sample app
* commit '50600ba5d68e1e002bd8b6ca646be93f922d37ab':
  Android Training: Threads sample app
2012-12-13 11:03:10 -08:00
Joe Malin
50600ba5d6 am a525bf71: am 1e083591: am 2c063c88: Android Training: Threads sample app
* commit 'a525bf719545fc315d03c1c6ee74f61e8dda03e0':
  Android Training: Threads sample app
2012-12-13 11:00:59 -08:00
Joe Malin
a525bf7195 am 1e083591: am 2c063c88: Android Training: Threads sample app
* commit '1e083591aed6b77408f6fce363bd48e63db92ed4':
  Android Training: Threads sample app
2012-12-13 10:58:59 -08:00
Joe Malin
2c063c889a Android Training: Threads sample app
Change-Id: I6d07871acad31807eb4bf06aa8406b722320680c
2012-12-12 10:47:58 -08:00
Dianne Hackborn
613e19b740 SDK Only: Fix search interaction with various samples.
These were broken where pressing back would not clear the
search filter.

Change-Id: Iafd4a497a31a9689efabe7d92f44618a5e8dc80c
2012-12-05 15:17:31 -08:00
kmccormick@google.com
ab85a2a59a am d77ac2b9: am 80e0ac6a: am 70db2b6b: Merge "Doc change: sample app for Notifications class" into jb-dev-docs
* commit 'd77ac2b955ff5adf68f7437bb286c3e02430f896':
  Doc change: sample app for Notifications class
2012-11-27 11:25:27 -08:00
kmccormick@google.com
d77ac2b955 am 80e0ac6a: am 70db2b6b: Merge "Doc change: sample app for Notifications class" into jb-dev-docs
* commit '80e0ac6abc4a58d7442cc1d0707e77f4636ea0bd':
  Doc change: sample app for Notifications class
2012-11-27 11:22:40 -08:00
&& repo sync -j8
fc0d593056 Doc change: sample app for Notifications class
Change-Id: Iaa45156f333e5b8e9bc9cc596900835540ff138e
2012-11-26 16:56:34 -08:00
Katie McCormick
99ca344b23 cherrypick from ics-mr1 docs: network sample Change-Id: If50f407a0e56fa802fe9beedaa650e3a131872b2
Change-Id: I60235aa3e80974f2c3000760853f0159cf41cfa5
2012-11-05 14:52:30 -08:00
Philip Milne
888ac28d79 Fixes to GridLayout demos.
Include a GridLayout version of the "Simple Form" example provided in the
LinearLayout and RelativeLayout demos.

Make the existing Form demo work on all devices and orientations
(it was previously too wide for portrait mode).

Change-Id: Ia01d49230bc3ef3d2e70bc34e936c8b4b421b796
2012-11-01 13:16:37 -07:00
Romain Guy
a161dd2994 Add sample code for the new widget android.widget.TextClock
Change-Id: I0b65fcc35db8d9f15d9b7c4ada0658d806a601b8
2012-10-31 20:35:07 -07:00
Jeff Brown
b7e8a4ecb1 Merge "Add a demo for using Presentations with the MediaRouter." into jb-mr1-dev 2012-10-26 13:53:05 -07:00
Roman Nurik
31f3da3a08 am 9cfe3d44: am dc567ef5: am c00fe97b: Merge "AnimationsDemo sample code for Animations training class." into jb-dev-docs
* commit '9cfe3d449dfe81c8dfe367ec9d954fee266dd8cf':
  AnimationsDemo sample code for Animations training class.
2012-10-26 09:00:34 -07:00
Roman Nurik
9cfe3d449d am dc567ef5: am c00fe97b: Merge "AnimationsDemo sample code for Animations training class." into jb-dev-docs
* commit 'dc567ef57a0b7903880539d18a738f0d92fb750b':
  AnimationsDemo sample code for Animations training class.
2012-10-26 08:57:47 -07:00
Jeff Brown
66dc70ff47 Add a demo for using Presentations with the MediaRouter.
Improved the documentation and robustness of the samples.

Modified the existing Presentation sample to use the new
DisplayManager API for querying displays that support a
particular category of uses.

Bug: 7409073
Change-Id: I2a19afa373c408c2bcbaa633370480b717630088
2012-10-25 20:14:32 -07:00
Roman Nurik
01be9fd4c0 AnimationsDemo sample code for Animations training class.
Change-Id: I0fbf3c2f66ee4321adcc0c0bf3fe7f4b4e67584e
2012-10-25 12:59:24 -07:00
Jeff Brown
c875f9321a Add ApiDemos for secure surfaces.
Added three ApiDemos for secure surfaces.  One for Activity,
one for Dialog and one for SurfaceView.  The mechanism is the
same in each case but the API is a little different.

Bug: 7368436
Change-Id: I78bc2a456b4c0f1a553120d72f433095ba7e038c
2012-10-24 12:56:50 -07:00
Adam Momtaz
2854254004 Merge "Added UiAutomator samples to SDK" into jb-mr1-dev 2012-09-25 19:06:57 -07:00
Adam Momtaz
8213206c6e Added UiAutomator samples to SDK
Verified tests are building OK.

Change-Id: I838e44e84b3d9e2e503bff4ed2b95887996d8801
2012-09-25 17:15:17 -07:00
Dianne Hackborn
7263dad223 Update API demos to match new tab interaction.
Follow changes to FragmentTabManager to continue to work
correctly with it.  Fix the code in the base API demo (which
can't use FragmentTabManager) to work correctly.

Bug #7232088: ListView saved state being lost in some cases

Change-Id: Ib7ba1ab20ff00f2cc95c9f6024ab94783237c9be
2012-09-25 15:07:06 -07:00
Jim Miller
84fb279107 Add test case for new keyguard widget API
Change-Id: Ibcb19c15964f4ea4bad36ec102e9aed8b4ea9c41
2012-09-20 23:46:30 -07:00
Craig Mautner
51f883381d Make Presentation demo retain image and color.
Store which Displays are presenting, their images and their
background colors. That way the don't change between onPause
and onResume.

Change-Id: I01328583ef309bf12e7f5750aa4abea50f847a99
2012-09-11 22:13:09 -07:00
Craig Mautner
9dac35adda New and improved Presentation demo.
Less clutter, bigger letters!

Change-Id: Ie0d5626c6a83a0e96bbda9220aea1f945c1bd825
2012-09-11 14:53:03 -07:00
Dianne Hackborn
bd783a0e87 New API demo for nested fragments in support lib.
Also some cleanup of other demos.

Change-Id: I8c4265218c87e490718c9c908803fc09303873a6
2012-09-09 14:41:24 -07:00
Dianne Hackborn
f3f7c5f775 API demo for nesting fragments.
Change-Id: I7f20e4f00cf68c78c578ae620a95de7fa97f0761
2012-09-06 11:39:30 -07:00