Commit Graph

1264 Commits

Author SHA1 Message Date
Adam Powell
691c832162 Update for ViewPager changes
Change-Id: I186fe998b05b37d178ed07633597692900c6d238
2011-06-15 17:31:27 -07:00
Anirudh Dewani
2a92e94315 am 76f74ab9: am 03c343e1: am b79c8d05: Merge "Adding resizeMode to widget samples." into honeycomb-mr2
* commit '76f74ab940fd1d4eb7da9a41286bde5972715626':
  Adding resizeMode to widget samples.
2011-06-15 14:00:08 -07:00
Anirudh Dewani
b79c8d0583 Merge "Adding resizeMode to widget samples." into honeycomb-mr2 2011-06-15 10:57:44 -07:00
Debashish Chatterjee
c635aaacff Changed VoicemailProvider demo app to use new VoicemailContract api.
- Use new VoicemailContract instead of VoicemailProvider for API.
  VoicemailContract will soon be submitted to framework/base. The local
  copy will then be deleted.
- Got rid of some unused util/core classes.

Change-Id: Ic7ac76777023a8b94a5ddf2f90caf0bf48d1f60c
2011-06-15 17:09:49 +01:00
Gilles Debunne
e27049a31a XmlAdapters sample example no longer depends on hidden XmlDocumentProvider
Bug 4477831

New changes. Copied code from protected methods to make the example stand-alone.

Change-Id: Ic6592811251090a634743d3d0383b4fd7b046c2f
2011-06-13 18:30:35 -07:00
Dianne Hackborn
b6d84fde9f resolved conflicts for merge of ce28e097 to master
Change-Id: Iced68c2dbae177b59aa6f3862868e68836be2afd
2011-06-13 17:21:25 -07:00
Dianne Hackborn
b181a0d1a8 Merge "New API demos showing use of tabs with fragments." into honeycomb-mr2 2011-06-13 16:33:26 -07:00
Dianne Hackborn
be6b6b494f New API demos showing use of tabs with fragments.
Also various cleanup in other demos.

Change-Id: I4f5669117e28312bcd4b28795c5eca5f4ab6dcfb
2011-06-13 16:27:17 -07:00
Bruno Oliveira
bc85db5f97 am 68a87a4a: am d0e6d6f7: am 6f24f89c: Merge "Adds the Random Music Player sample." into honeycomb-mr2
* commit '68a87a4ac6eb7a2b991de8b6df53638015ed9e12':
  Adds the Random Music Player sample.
2011-06-13 15:42:40 -07:00
Bruno Oliveira
6f24f89ccb Merge "Adds the Random Music Player sample." into honeycomb-mr2 2011-06-13 14:25:26 -07:00
Anirudh Dewani
cd5e69361d Adding resizeMode to widget samples.
Change-Id: I60e43f4f2f3726f7b268f532f2da86913df72982
2011-06-10 16:46:40 +05:30
Dianne Hackborn
518936d32b am b36c8d68: am 0a9365f8: am 7ffb7d4b: Update pager demos to match new v4 ViewPager API.
* commit 'b36c8d68a33d12086bf74ccaa826e8dae67ce673':
  Update pager demos to match new v4 ViewPager API.
2011-06-07 11:13:47 -07:00
Bruno Oliveira
b30a3010f5 Adds the Random Music Player sample.
This sample illustrates how to write an application that plays media
in the background, handles streaming media from the network and
reacts appropriately to system events like headphone disconnection and
audio focus changes, and also uses the notification system to
keep the user informed about what is happening.

This CL is a cherrypick of the old CL 104495 (originally in
honeycomb-mr1) into honeycomb-mr2. Original CL:
https://android-git.corp.google.com/g/#change,104495

Change-Id: Ib8b15ee920300adc093a8b52c17bd9c251ac74ca
2011-06-07 01:09:21 -04:00
Dianne Hackborn
7ffb7d4b2f Update pager demos to match new v4 ViewPager API.
Change-Id: I3b0f3382d56b477868b5a5fbf5af22fa83c3e06a
2011-06-06 15:01:45 -07:00
Dianne Hackborn
7a16938f3a am b6991d5c: am a6cadd62: am 47f569e4: Lost and found.
* commit 'b6991d5cf17506af0cea039aad4e0ee1ab379449':
  Lost and found.
2011-06-03 17:34:52 -07:00
Dianne Hackborn
f32273ce7d am 6faeacbb: am 068fa0c3: am 72d2e5c1: New demos for the v13 support library.
* commit '6faeacbbc561161a84a26e951f896880baa91ce5':
  New demos for the v13 support library.
2011-06-03 16:21:41 -07:00
Dianne Hackborn
df92d5c5f6 Fix build.
Change-Id: If9c9289f63f98a8108452020fa28aa16b1d4a78e
2011-06-03 13:09:42 -07:00
Dianne Hackborn
47f569e460 Lost and found.
Change-Id: I3aa4824e2c2157be715d93b698963c54dd98e099
2011-06-03 12:31:09 -07:00
Dianne Hackborn
d190f3b9d0 resolved conflicts for merge of faf6dcd6 to master
Change-Id: I637e2982daefb7c4800ed31bc4cadbfb16cc2c81
2011-06-03 11:05:47 -07:00
Andy Stadler
7e408e8be4 Merge "DO NOT MERGE Replacement sample code for DevicePolicyManager api." into honeycomb-mr2 2011-06-03 10:24:20 -07:00
Dianne Hackborn
72d2e5c1b9 New demos for the v13 support library.
Change-Id: I79a727f987d3b21274e1f9ee6359caa2231c258b
2011-06-02 19:44:57 -07:00
Andy Stadler
547494ef8a DO NOT MERGE Replacement sample code for DevicePolicyManager api.
* UI is organized into multiple screens to make it easier to understand
* More feedback about local vs global (aggregate) policies
* Uses preference fragments for modern appearance

Backport of: I075161d389942786e6c95483becbff7ebe847078

Change-Id: Ie88c1577b2ebae124615cc4b45968851cf11187e
2011-06-02 16:39:17 -07:00
Andy Stadler
5c70b4559d Merge "Replacement sample code for DevicePolicyManager api." 2011-05-31 16:06:56 -07:00
Stephen Hines
0ed4da6881 Merge "Simplify HelloCompute example. :)" 2011-05-31 13:00:55 -07:00
Andy Stadler
0879ed418d Replacement sample code for DevicePolicyManager api.
* UI is organized into multiple screens to make it easier to understand
* More feedback about local vs global (aggregate) policies
* Uses preference fragments for modern appearance

Change-Id: I075161d389942786e6c95483becbff7ebe847078
2011-05-31 10:14:27 -07:00
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