Alexander Lucas | f574b13 | 2011-10-28 11:36:59 -0700 | [diff] [blame] | 1 | <p>The API Demos application includes a variety of small applications |
Scott Main | 0468085 | 2009-08-24 15:27:00 -0700 | [diff] [blame] | 2 | that illustrate the use of various Android APIs. It includes samples of: |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 3 | </p> |
Scott Main | 0468085 | 2009-08-24 15:27:00 -0700 | [diff] [blame] | 4 | <ul> |
Alexander Lucas | f574b13 | 2011-10-28 11:36:59 -0700 | [diff] [blame] | 5 | <li>Notifications</li> |
| 6 | <li>Alarms</li> |
| 7 | <li>Progress Dialogs</li> |
| 8 | <li>Intents</li> |
| 9 | <li>Menus</li> |
| 10 | <li>Search</li> |
| 11 | <li>Persistent application state</li> |
| 12 | <li>Preferences</li> |
| 13 | <li>Background Services</li> |
| 14 | <li>App Widgets</li> |
| 15 | <li>Voice Recognition</li> |
| 16 | <li>And many many more...</li> |
Scott Main | 0468085 | 2009-08-24 15:27:00 -0700 | [diff] [blame] | 17 | </ul> |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 18 | |
Scott Main | 8e56770 | 2011-10-14 11:05:08 -0700 | [diff] [blame] | 19 | <div class="note"> |
| 20 | <p><strong>Update:</strong> The following are some of the new demos for Android 4.0:</p> |
| 21 | <ul> |
| 22 | <li><a |
Svetoslav Ganov | 30073fb | 2011-10-21 17:23:10 -0700 | [diff] [blame] | 23 | href="src/com/example/android/apis/preference/PreferencesFromCode.html">Switch Preference</a></li> |
Scott Main | 8e56770 | 2011-10-14 11:05:08 -0700 | [diff] [blame] | 24 | <li><a |
Svetoslav Ganov | 30073fb | 2011-10-21 17:23:10 -0700 | [diff] [blame] | 25 | href="src/com/example/android/apis/app/ActionBarSettingsActionProviderActivity.html">Settings Action Provider |
| 26 | </a></li> |
| 27 | <li><a |
| 28 | href="src/com/example/android/apis/app/ActionBarShareActionProviderActivity.html">Share Action Provider |
Scott Main | 8e56770 | 2011-10-14 11:05:08 -0700 | [diff] [blame] | 29 | </a></li> |
Scott Main | 936304c | 2011-10-14 14:02:45 -0700 | [diff] [blame] | 30 | <li><a href="src/com/example/android/apis/view/SearchViewActionBar.html">Collapsible action |
Scott Main | 8e56770 | 2011-10-14 11:05:08 -0700 | [diff] [blame] | 31 | view</a></li> |
Scott Main | 936304c | 2011-10-14 14:02:45 -0700 | [diff] [blame] | 32 | <li><a href="src/com/example/android/apis/app/FragmentCustomAnimations.html">Custom |
Scott Main | 8e56770 | 2011-10-14 11:05:08 -0700 | [diff] [blame] | 33 | fragment animations</a></li> |
Scott Main | 936304c | 2011-10-14 14:02:45 -0700 | [diff] [blame] | 34 | <li><a href="src/com/example/android/apis/app/RemoteService.html">Service bindings</a></li> |
| 35 | <li><a href="src/com/example/android/apis/view/OverscanActivity.html">Full screen UI modes</a></li> |
| 36 | <li><a href="src/com/example/android/apis/graphics/TouchPaint.html">Stylus and hover |
Scott Main | 8e56770 | 2011-10-14 11:05:08 -0700 | [diff] [blame] | 37 | support</a></li> |
| 38 | <li><a href="src/com/example/android/apis/view/Switches.html">Switch widget</a></li> |
Svetoslav Ganov | 7d95585 | 2011-10-24 16:07:34 -0700 | [diff] [blame] | 39 | <li><a href="src/com/example/android/apis/accessibility/AccessibilityNodeProviderActivity.html">Accessibility Node Provider</a></li> |
Alexander Lucas | 96c0210 | 2011-10-27 15:23:41 -0700 | [diff] [blame] | 40 | <li><a |
| 41 | href="src/com/example/android/apis/accessibility/TaskBackService.html">Window |
| 42 | Querying Accessibility Service</a></li> |
Svetoslav Ganov | a752338 | 2011-11-29 12:34:26 -0800 | [diff] [blame] | 43 | <li><a |
| 44 | href="src/com/example/android/apis/accessibility/CustomViewAccessibilityActivity.html">Custom View |
| 45 | Accessibility</a></li> |
| 46 | |
Scott Main | 8e56770 | 2011-10-14 11:05:08 -0700 | [diff] [blame] | 47 | </ul> |
| 48 | </div> |
| 49 | |
Scott Main | ea6c4f9 | 2009-11-20 14:38:29 -0800 | [diff] [blame] | 50 | <script type="text/javascript"> |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 51 | |
Scott Main | ea6c4f9 | 2009-11-20 14:38:29 -0800 | [diff] [blame] | 52 | // This is a totally temporary hack to display the following content only |
| 53 | // when the docs are online. This will be changed once the samples get moved. |
Scott Main | 0468085 | 2009-08-24 15:27:00 -0700 | [diff] [blame] | 54 | |
Scott Main | ea6c4f9 | 2009-11-20 14:38:29 -0800 | [diff] [blame] | 55 | if (toRoot == "/") { |
Scott Main | 0468085 | 2009-08-24 15:27:00 -0700 | [diff] [blame] | 56 | |
Scott Main | ea6c4f9 | 2009-11-20 14:38:29 -0800 | [diff] [blame] | 57 | document.write(""+ |
Dirk Dougherty | e096b94 | 2010-01-11 16:33:57 -0800 | [diff] [blame] | 58 | "<p>You'll notice that all the samples are included in a single Android "+ |
| 59 | "project, so the application code and other resource files for all samples are batched "+ |
| 60 | "together. To help you find the code that's relevant to you, here's a directory that "+ |
Scott Main | ea6c4f9 | 2009-11-20 14:38:29 -0800 | [diff] [blame] | 61 | "points to the program code for the different topics included in the project:</p>"+ |
Scott Main | 0468085 | 2009-08-24 15:27:00 -0700 | [diff] [blame] | 62 | |
Scott Main | ea6c4f9 | 2009-11-20 14:38:29 -0800 | [diff] [blame] | 63 | "<ul><li><a href='src/com/example/android/apis/animation/index.html'>Animation</a></li>"+ |
| 64 | " <li><a href='src/com/example/android/apis/app/index.html'>App</a></li>"+ |
| 65 | " <li><a href='src/com/example/android/apis/appwidget/index.html'>App Widgets</a></li>"+ |
| 66 | " <li><a href='src/com/example/android/apis/content/index.html'>Content</a></li>"+ |
| 67 | " <li><a href='src/com/example/android/apis/graphics/index.html'>Graphics</a></li>"+ |
| 68 | " <li><a href='src/com/example/android/apis/media/index.html'>Media</a></li>"+ |
| 69 | " <li><a href='src/com/example/android/apis/os/index.html'>OS</a></li>"+ |
| 70 | " <li><a href='src/com/example/android/apis/text/index.html'>Text</a></li>"+ |
Dianne Hackborn | 10c3352 | 2011-05-27 18:29:00 -0700 | [diff] [blame] | 71 | " <li><a href='src/com/example/android/apis/view/index.html'>Views</a></li></ul>"); |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 72 | |
Scott Main | ea6c4f9 | 2009-11-20 14:38:29 -0800 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | </script> |