Commit Graph

179 Commits

Author SHA1 Message Date
Xavier Ducrohet
344e27f238 am e0db6a0c: am 392863b7: Merge "Remove tab only if tab exists."
* commit 'e0db6a0c5523678f42229e99ea4598dc52b862eb':
  Remove tab only if tab exists.
2012-06-06 14:52:36 -07:00
Xavier Ducrohet
392863b774 Merge "Remove tab only if tab exists." 2012-06-06 14:44:26 -07:00
Dianne Hackborn
80df91c7f2 New API demos for retained fragments with loaders.
Also tweak the cursor loader samples to filter out query
callbacks that don't change the filter, to avoid restarting the
loader on a configuration change.

Change-Id: Iac9293fed45e127698be59262d68b0b59a8ec9ce
2012-06-04 11:12:37 -07:00
Dianne Hackborn
9cd165488b Add API demo for Activity.finishAffinity().
Also fix text on some of the existing demos to use the nice
larger font.

Change-Id: I90d3815cd47cda08217cfc6307d64942f6750ae2
2012-04-26 18:57:13 -07:00
Dianne Hackborn
d1871405ba Add demo for new custom animation.
Change-Id: I4981f47fe9120f1cfaa7ca793d5fed7f41cb83a4
2012-04-16 18:59:12 -07:00
Dianne Hackborn
1b9744a99a Update to follow API change.
Change-Id: I092f2a9fde19648f5d47bde091d15f1bb5deb63b
2012-04-10 16:15:15 -07:00
Dianne Hackborn
adee1fdf63 Update Full Screen Modes to demostrate more modes.
UI is now a set of check boxes to toggle the various modes.

Also add new API demos for two typical implementations using
system UI flags: a content browser and a video player.

Change-Id: If93659343cfc42b903b18997a5a0a04ee10e8343
2012-03-30 17:13:06 -07:00
Dianne Hackborn
a71d47a718 Add API demo for thumbnail animations.
Change-Id: I97f03f4a172a820d7856bd663a6bc00e3b9521cd
2012-03-23 16:37:04 -07:00
Dianne Hackborn
967d1e6caf Update animation sample to use new activity options API.
Change-Id: Id73663f1e5f159c5b073cd9c074501958ca5a81f
2012-03-19 17:50:03 -07:00
Cheng Ke
7ec212f118 Remove tab only if tab exists.
Prevent crash in ActionBarTabs(ApiDemos).

Change-Id: I1972fc761e8ebf245afb828fe7595bc764eaae56
2012-03-14 10:58:35 +08:00
Dianne Hackborn
de48b21c2d Fix isolated process demo to work with new restrictions.
Isolated processes can now do much less.

Change-Id: I1af8ae0d8dca72de1324d98ed6004cb3c0820a7a
2012-02-09 18:19:37 -08:00
Dianne Hackborn
37f02d8042 New API demo for isolated processes.
Change-Id: I2b2117ae5e5005bfffe8d89df5e06cee32da603c
2012-02-09 10:51:07 -08:00
Dianne Hackborn
174f61c0e9 Fix notification sample to follow current UI guidelines.
Lots of clean up on the messaging notification sample to show the real
correct way to do things.  Also mark up a bunch of the sample for use
in the documentation.

Change-Id: I3a29a944c2971e142c33b29aff94b1ba0b40ae0e
2012-01-10 15:53:32 -08:00
Svetoslav Ganov
101f061d35 Folding Accessibility Service sample into ApiDemos.
1. Moving Accerssibility Service sample into ApiDemos since
   we are putting all accessibility samples there.

2. Fixed regressions (mainly due to adding new event types)
   in the Accessibility Service sample.

3. Updated the Query Window Content sample to have some
   instructions and to work with touch exploration.

Change-Id: I226ac4130f7f8cae47bb52cbdeab9f104cfaba40
2011-10-28 19:18:24 -07:00
Svetoslav Ganov
30073fb13b Adding a code sample for how to write a custom action provider.
NOTE: This change does *not* affect the system image rather only the SDK.

bug:5499856

Change-Id: I589ed412b72e94b21dbe1f069006c7c527a06c71
2011-10-21 18:30:40 -07:00
Luca Zanolin
37a152d1ae Merge "Show how to use broadcast for accessing voice search settings." 2011-08-04 02:51:50 -07:00
Luca Zanolin
50b7e75061 Show how to use broadcast for accessing voice search settings.
Change-Id: Ie17e377cd1814b58e00a56e8dfb84fc66cd88985
2011-08-04 09:50:21 +01:00
Dianne Hackborn
65b7786636 New API showing the various new service binding flags.
Change-Id: I2c19388c1c8b8386d77183c1e1f3aa9eef85cd46
2011-07-29 01:49:10 -07:00
Svetoslav Ganov
7dd37fbbed Adding a missing documentation of the ActionProvider ActionBar sample.
Change-Id: I09772305953f7684388603f3f34ec21c64a09067
2011-07-28 17:50:04 -07:00
Romain Guy
c35d058e8d Add new API demos for fragment custom animations.
Change-Id: Ia4339d4e4c1617907a9c707e1b8c2309b303e267
2011-07-25 16:29:00 -07:00
Svetoslav Ganov
575c0c3e5c Fixing the action provider demo
1. Fixed a bug the the way the URI was set to the
   intent.

2. Added code to copy a private raw resource to a
   publicly readable file that is to be shared.

Change-Id: Ib7ee172b2a4a890ce77911d0ef1c3ea3b24e69c9
2011-07-19 13:19:47 -07:00
Svetoslav Ganov
ddece2d84d Adding ActionProvider demo.
Change-Id: If0f540cd796ced27f392f1c31d20ab5ab34e5c3e
2011-07-14 18:00:14 -07:00
Dianne Hackborn
2a5f96547c am 712e6c2d: am e5062a33: am 102041a8: SDK only: add documentation tags.
* commit '712e6c2d2ea1f83ea3e339e8e875d4b25edeca6c':
  SDK only: add documentation tags.
2011-06-16 15:00:19 -07:00
Dianne Hackborn
102041a8bc SDK only: add documentation tags.
Also fix up the new support API demo documentation.

Change-Id: I7a6945ffafa6a93cd394d5ce5729d6f9dfc0a183
2011-06-16 14:38:03 -07:00
Ben Komalo
63506eeafe API sample for using new disallow camera policy.
Change-Id: Ic83b2079312860a3c4b9348ca28dc7d3c0a2b9e6
2011-06-15 18:01:22 -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
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
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
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
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
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
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
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
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
Dianne Hackborn
7f308f27bf New API demo showing arguments to fragments.
Change-Id: I5bc41bb23b7ac6a6d7cbbd08cec67879dc4ae2fe
2011-03-03 22:20:11 -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
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
Andy Stadler
5ee9462101 Remove references to global proxy APIs
Remove global proxy settings from Apidemos
Remove CorpApp

Bug: 3460938
Change-Id: I2b6889a96341f0e4fad50a9cfaa76db715ecfaa0
2011-02-16 10:51:01 -08:00
Scott Main
0f911715e4 docs: add links to action bar and drag demos in the index page
Change-Id: I3fb2bff96d958801d350b94e0b0193c71902a7a8
2011-02-14 15:36:46 -08:00
Dianne Hackborn
e36d13b70d Add new samples for explicit alert dialog themes.
Change-Id: I1e306c0786952ab391c479a9322065efd8566ca7
2011-01-27 16:35:02 -08:00
Dianne Hackborn
649790adc5 Use multiple async tasks.
Change-Id: If6be431a4f9443eaaf4478bae57c29f77f558b91
2011-01-24 21:26:57 -08:00
Dianne Hackborn
7c69dba7cc Remove use of old theme name.
Change-Id: Iebc7a81738122fbfb94f22649e07eabb39dc4afb
2011-01-23 14:10:41 -08:00
Adam Powell
4da9196dd0 API change - bug 3370353 and bug 3370338
Change-Id: I9da53f3260ca17713e793b420e477686ad23c7d3
2011-01-20 18:36:37 -08:00
Xavier Ducrohet
959f517c24 Merge "Remove illegal @Override on interface method." into honeycomb 2011-01-17 21:51:43 -08:00
Xavier Ducrohet
62e3bb6f93 Remove illegal @Override on interface method.
Samples should compile with 1.5

Change-Id: I029ae9ded4237fd9d4d2d1dbf2c7c537afbbf36b
2011-01-17 17:05:05 -08:00
Dianne Hackborn
0d11c9c345 Follow API changes.
Change-Id: Ieb1df7fc0708f22aae3d851f74ade1343eb44e08
2011-01-17 15:27:56 -08:00
Andy Stadler
d8865cc32c Update demo for DPM encryption controls
* Follow revised API
* Show more status

Bug: 3346770
Change-Id: I6c5cd8d8f055ceb3a3a78cf3868dbc0f2d535acf
2011-01-17 12:53:31 -08:00
Andy Stadler
3eb48a061a Add encryption status controls
* Enable, disable, and activate encryption
* Report encryption status

Change-Id: Ia76cf6033fe00ebdfd3369f8123f5d1ec109f3a9
2011-01-12 20:41:20 -08:00
Scott Main
3ea03c5321 docs: add section links to samples overview
Change-Id: Ib605362eb97e607eba3d965a5ca0f32e6207b841
2011-01-11 21:09:53 -08:00