Commit Graph

1139 Commits

Author SHA1 Message Date
Dianne Hackborn
10c33528e0 Extract support lib samples out of ApiDemos and in to their own app.
Change-Id: I2ca344e5f1b44c4825de938c9a4f9375a523ede5
2011-05-27 18:40:15 -07:00
Debashish Chatterjee
45148680ba Merge "Voicemail provider sample source code." 2011-05-26 07:44:15 -07:00
Andy Stadler
69d5096f2b Update ApiDemos to show active password status
* Add Check Password button
* Use it to report overall password status - isActivePasswordSufficient()
  and various password settings.
* Fixed a minor bug that cause the password quality to be reset to
  "unspecified" every time you start the activity.
* Leave the two password buttons enabled all the time (set password
  can be used when not active, and check password just puts up a toast
  explaining why it can't be used when inactive.)

This code can be used to confirm bug b/4445007 and hopefully its fix, too.

Change-Id: I136706072257d2e49184a29b0aa5d7a524960c40
2011-05-24 22:55:22 -07:00
Debashish Chatterjee
8d6d2581ff Voicemail provider sample source code.
The app demostrates the how to use voicemail provider APIs to insert new
voicemail records using a simple UI.

Change-Id: I22610e06a8b80518b9f0d811f72afe245a4148c6
2011-05-23 14:40:01 +01:00
Dianne Hackborn
e2febea571 am 339a6666: am c7ec100c: am 193d98ec: Add new API demo for -swNNNdp resource qualifier.
* commit '339a6666bffcfdb7648c83333ecb16002564b2f6':
  Add new API demo for -swNNNdp resource qualifier.
2011-05-19 19:37:22 -07:00
Dianne Hackborn
193d98ec18 Add new API demo for -swNNNdp resource qualifier.
Also clean up the demo for the w/h qualifiers to use numbers
that are the same as what we will be recommending.

Change-Id: I87ed35d8dfcb41985e19f450f7853f883effd207
2011-05-19 18:23:29 -07:00
Stephen Hines
06819a6a54 Simplify HelloCompute example. :)
Change-Id: I45ca48df6f56c7f01f32fe609e8975c34ea183be
2011-05-18 13:15:01 -07:00
Ben Murdoch
5b0331a3ff Merge WebKit at r75993: Update Makefiles
Update makefile to take into account new WebKit source
location.

Change-Id: I5b3d43c2707ce393ec37bfac61ecc7e507ca8c3e
2011-05-16 12:29:28 +01:00
Dianne Hackborn
d9012d1bfa DO NOT MERGE. Integrate API demo work from master.
New API demo for the support library FragmentPager class.

Add API demo for new -wNNNdp and -hNNNdp configs.

Add new API demo for implementing a custom loader.

Also turn the fragment cursor list demo into a loader cursor demo.
2011-05-13 13:31:52 -07:00
Dianne Hackborn
b6054b4888 More improvements to pager.
Also another size step for the resource screen size sample.

Change-Id: I9e8b63d2fc9a0ceab7b003f7bd75218b78311ed6
2011-05-13 12:15:54 -07:00
Steve Block
6557199f1f Fix WebCore include paths due to merge to WebKit r75315
The WebCore directory has moved inside a new Source directory.

Change-Id: Idce70451e1526a5c92d4b3abcc5bd2dbf3fca903
2011-05-13 11:47:39 +01:00
John Evans
5bfda7e1c0 Merge "New version of SampleSyncAdapter sample code that allows local editing" 2011-05-03 15:40:03 -07:00
Mike Lockwood
5ec063c0c6 am 04b53db9: am cd392822: Add USB MissleLauncher sample program
* commit '04b53db9b44cbef91473bec7d7bab41931729b09':
  Add USB MissleLauncher sample program
2011-05-03 15:24:57 -07:00
Mike Lockwood
7e2b5698a0 am 95dfe367: am 3385faf4: Add AdbTest sample program
* commit '95dfe367255161e5927c8a6c077111eb013d7ec6':
  Add AdbTest sample program
2011-05-03 15:24:55 -07:00
Mike Lockwood
cd39282253 Add USB MissleLauncher sample program
This is sample code that controls a USB missle launcher using USB host APIs

Change-Id: Ic4201faccc4562bf114c70d50b0cab6a00d28a98
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-05-03 17:56:51 -04:00
Mike Lockwood
3385faf4e6 Add AdbTest sample program
This sample implements the "adb logcat" command using USB host APIs.

Change-Id: Ifbf122e99358bd3a1cd2a7967c364ffd59f003b3
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-05-03 17:55:19 -04:00
Stephen Hines
f99909bd50 Fix RS graphics samples.
Change-Id: I7434dfa21707d506cd79897068d9f1d02a227521
2011-05-02 17:42:19 -07:00
John Evans
15ef1a8091 New version of SampleSyncAdapter sample code that allows local editing
The changes made were
pretty sweeping. The biggest addition was to allow on-device contact
creation/editing, and supporting 2-way sync to the sample server that
runs in Google App Engine.

The client-side sample code also includes examples of how to support
the user of AuthTokens (instead of always sending username/password
to the server), how to change a contact's picture, and how to set
IM-style status messages for each contact.

I also greatly simplified the server code so that instead of mimicking
both an addressbook and an IM-style status update system for multiple
users, it really just simulates an addressbook for a single user. The
server code also includes a cron job that (once a week) blows away the
contact database, so that it's relatively self-cleaning.

Change-Id: I017f1d3f9320a02fe05a20f1613846963107145e
2011-04-28 10:31:38 -07:00
Dianne Hackborn
38c48e57fb Add new API demo for implementing a custom loader.
Also turn the fragment cursor list demo into a loader cursor demo.

Change-Id: I36d7b63de74c230188be18bd80890d66762ff6aa
2011-04-20 10:28:00 -07:00
Dianne Hackborn
a8693d8b03 Add handling of tasks being removed.
Change-Id: I6141f17310e61dc6b86052ca81a17a51cc6a2193
2011-04-12 18:25:38 -07:00
Joe Onorato
1710677cba Remove the deprecated things from Config.java. These haven't been working since before 1.0.
Change-Id: I01e0e2476de9098152434b9991c22483fc6e1165
2011-04-07 19:22:49 -07:00
Dianne Hackborn
59e35f1972 Add API demo for new -wNNNdp and -hNNNdp configs.
Change-Id: I3c0e53f4007c5a486855346b2b7221ce4f2739c3
2011-04-06 12:38:11 -07:00
Dianne Hackborn
38eafa95f7 New API demo for the support library FragmentPager class.
Change-Id: I3da4c9fe83cac48054f1efaa40b1f57f68402faa
2011-04-05 11:04:34 -07:00
Winson Chung
5892ebcdd9 am 6c6639d1: am b02ad50d: Making the sample weather widget vertically resizeable.
* commit '6c6639d1e25c041800228d1c961279b1451ed2aa':
  Making the sample weather widget vertically resizeable.
2011-03-30 16:38:41 -07:00
Kenny Root
c8c211a085 Fix some errors in the foreground compat
The foreground compatibility sample wouldn't actually work on an old
platform because of a misplaced return statement in onCreate and the
invokeMethod would ignore its arguments.

Change-Id: Ic1d1a6d8579700215c7988cd603a6bb86f1346a4
2011-03-29 09:51:21 -07:00
Winson Chung
b02ad50d1a Making the sample weather widget vertically resizeable.
Change-Id: I0301004a703b501cf135e0750512ad9070aff59c
2011-03-28 15:46:29 -07:00
Xavier Ducrohet
a500a941ec am 6f06f575: am 57931c3d: Move samples to 12.
* commit '6f06f5755a13c50ced9d36b799dfce1d6957216f':
  Move samples to 12.
2011-03-22 11:42:33 -07:00
Xavier Ducrohet
57931c3ddb Move samples to 12.
Change-Id: Ic56f5f9e59ce601db37b593b2e715793f6c3473c
2011-03-21 17:38:04 -07:00
Romain Guy
bc411cdd02 Merge 520c90cc from master. do not merge.
Don't crash because of hardware acceleration.

Change-Id: I70554d5c7637b768cf815bb9f57a5d3e2c49066d
2011-03-18 16:20:28 -07:00
Romain Guy
520c90cce1 Don't crash because of hardware acceleration.
Change-Id: If4cc213edba643aea82051e66e995d2258da91f8
2011-03-18 15:11:16 -07:00
Scott Main
46d6742ae2 am 12821396: am 900a1c1c: am 62c9b6cb: Merge "fix density sample to state density type rather than screen size" into honeycomb
* commit '128213967bddd8f0190baac3494de33d7792b7e9':
  fix density sample to state density type rather than screen size
2011-03-16 12:36:01 -07:00
Scott Main
900a1c1cf1 am 62c9b6cb: Merge "fix density sample to state density type rather than screen size" into honeycomb
* commit '62c9b6cb1479c24e07bc81b61b77905d13998b41':
  fix density sample to state density type rather than screen size
2011-03-16 12:13:58 -07:00
Scott Main
882b22d698 fix density sample to state density type rather than screen size
Change-Id: I3d8fd592c914c648b9ebb19fd585f7a20a882427
2011-03-16 10:30:17 -07:00
Iliyan Malchev
1dcd97644a development: remove LOCAL_PRELINK_MODULE
Change-Id: I6ae5c92aba05c3991bda260c264de835244f7f3e
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-03-14 14:24:21 -07:00
Jeff Brown
0d4619cc48 Merge "Update samples to use new getMotionRanges() API." into honeycomb-mr1 2011-03-09 18:33:55 -08:00
Dianne Hackborn
6b3f9b3ac9 Clean up support library samples.
Move them off into their own directory, so it is less confusing to
find them.

Also put in some additional samples -- throttle and arguments.

And add some docs.

Change-Id: I221e56c7ff203934796979bb5ed7ab8835f84b83
2011-03-08 18:18:10 -08:00
Jeff Brown
cb34b7c07a Update samples to use new getMotionRanges() API.
Change-Id: I6b67b7cd1f739b5b52ac32745f52bf0a092480a0
2011-03-08 17:35:22 -08:00
Daniel Sandler
f6ab64affe Merge "Restore CAMERA permission to ApiDemos." into honeycomb-mr1 2011-03-04 10:42:15 -08:00
Daniel Sandler
6044514d0d Restore CAMERA permission to ApiDemos.
Bug: 3512448
Change-Id: I6a80e7f0f9406e084fec9b626abb19cb24b4fe3d
2011-03-04 10:38:04 -05:00
Dianne Hackborn
7f308f27bf New API demo showing arguments to fragments.
Change-Id: I5bc41bb23b7ac6a6d7cbbd08cec67879dc4ae2fe
2011-03-03 22:20:11 -08:00
Shih-wei Liao
45e0abddcf Merge "Make AndroidManifest.xml's activity match what's in Java files" 2011-03-02 21:26:25 -08:00
Shih-wei Liao
7cd58489c9 Make AndroidManifest.xml's activity match what's in Java files
Change-Id: I9489d32a715a1aa7f8449495b7c1101a1ad1eac6
2011-03-01 18:21:44 -08:00
Xavier Ducrohet
86eecf0074 Add readme to ApiDemos to mention the need for android-support-v4
Change-Id: I3172f4644d41fe1358fd5ae327af03e54e1297b5
2011-03-01 16:32:51 -08:00
Alex Sakhartchouk
005148359f Merge "Moving renderscript sdk samples to their correct location." 2011-02-28 09:02:51 -08:00
Jeff Brown
cce588af9a Merge "Add a sample for HorizontalScrollView." 2011-02-25 17:15:20 -08:00
Dianne Hackborn
1917a19f3f Merge "New API demo showing how to execute when app is updated." 2011-02-25 16:16:56 -08:00
Jeff Brown
2e87344184 Add a sample for HorizontalScrollView.
Change-Id: If5f59771182fdb1e76ac10e32a89257f047e6798
2011-02-25 12:04:25 -08:00
Dianne Hackborn
4b3939280f New API demo showing how to execute when app is updated.
Change-Id: Ia4cb66db7473153d689afcf372824a476ef44565
2011-02-25 10:50:53 -08:00
Chet Haase
806af22e17 Add ViewPropertyAnimator for easy View animations
A demo in ApiDemos conflicted with the new animate() API
in View. The method was internal, so it was renamed to
avoid the conflict.

Change-Id: Id6dffc84fa0800677a0b67bee9c78f26da775d26
2011-02-25 07:10:09 -08:00
Dianne Hackborn
9fd3b6e993 New sample code for fragment support library.
Also tweak a few things to make the demos run on Donut.

Change-Id: I298fdf8fb0f12ee6db10e66657a22e19a527811a
2011-02-24 15:18:25 -08:00