| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | guide=true |
| 2 | page.title=Sample Code |
| 3 | @jd:body |
| 4 | |
| 5 | |
| 6 | <p>Sometimes, the best way to learn how things are done is to just look at some code. So here |
| Dirk Dougherty | 392d29a | 2009-05-01 13:01:24 -0700 | [diff] [blame] | 7 | we've provided links to let you browse the source of some sample Android applications included |
| 8 | in the Android SDK. </p> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 9 | |
| Dirk Dougherty | 392d29a | 2009-05-01 13:01:24 -0700 | [diff] [blame] | 10 | <p>The SDK includes a full set of sample applications for each Android platform version |
| 11 | in the SDK. You can find the sample applications for each platform version in this location:</p> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 12 | |
| Dirk Dougherty | 392d29a | 2009-05-01 13:01:24 -0700 | [diff] [blame] | 13 | <p style="margin-left:2em"><code><sdk>/platforms/android-<version>/samples/</code></p> |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 14 | |
| 15 | <p>You can easily add these applications as projects in your development environment, so that you |
| 16 | can modify them and watch them execute. </p> |
| 17 | <dl> |
| Scott Main | b385508 | 2009-08-24 14:45:00 -0700 | [diff] [blame] | 18 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 19 | <dt><a href="ApiDemos/index.html">API Demos</a></dt> |
| Scott Main | b385508 | 2009-08-24 14:45:00 -0700 | [diff] [blame] | 20 | <dd>A variety of small applications that demonstrate an extensive collection of framework topics.</dd> |
| 21 | |
| 22 | <dt><a href="Home/index.html">Home</a></dt> |
| 23 | <dd>An application for saving notes. Similar (but not identical) to the |
| 24 | <a href="{@docRoot}guide/tutorials/notepad/index.html">Notepad tutorial</a>.</dd> |
| 25 | |
| 26 | <dt><a href="JetBoy/index.html">JetBoy</a></dt> |
| 27 | <dd>JetBoy is a game that demonstrates the SONiVOX JET interactive music technology, with {@link android.media.JetPlayer}.</dd> |
| 28 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 29 | <dt><a href="LunarLander/index.html">Lunar Lander</a></dt> |
| 30 | <dd>A classic Lunar Lander game.</dd> |
| Scott Main | b385508 | 2009-08-24 14:45:00 -0700 | [diff] [blame] | 31 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 32 | <dt><a href="NotePad/index.html">Note Pad</a></dt> |
| 33 | <dd>An application for saving notes. Similar (but not identical) to the |
| 34 | <a href="{@docRoot}guide/tutorials/notepad/index.html">Notepad tutorial</a>.</dd> |
| Scott Main | b385508 | 2009-08-24 14:45:00 -0700 | [diff] [blame] | 35 | |
| Scott Main | 689d16b | 2009-08-29 13:17:53 -0700 | [diff] [blame] | 36 | <dt><a href="SearchableDictionary/index.html">Searchable Dictionary</a></dt> |
| 37 | <dd>A sample application that demonstrates Android's search framework, |
| 38 | including how to provide search suggestions for Quick Search Box.</dd> |
| 39 | |
| Scott Main | b385508 | 2009-08-24 14:45:00 -0700 | [diff] [blame] | 40 | <dt><a href="Snake/index.html">Snake</a></dt> |
| 41 | <dd>An implementation of the classic game "Snake."</dd> |
| 42 | |
| 43 | <dt><a href="SoftKeyboard/index.html">Soft Keyboard</a></dt> |
| 44 | <dd>An example of writing an input method for a software keyboard.</dd> |
| 45 | |
| The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 46 | </dl> |