diff options
| author | Scott Main <smain@google.com> | 2009-08-24 15:27:00 -0700 |
|---|---|---|
| committer | Scott Main <smain@google.com> | 2009-08-24 15:27:00 -0700 |
| commit | 04680858a0671ad615f088edeea87b61ea243f24 (patch) | |
| tree | 14ceeee28fe0e15964b4d04addbfbd283c319b7a /samples | |
| parent | e95a86cfec18836ddbff149690a13766bfc9ada3 (diff) | |
| download | android_development-04680858a0671ad615f088edeea87b61ea243f24.tar.gz android_development-04680858a0671ad615f088edeea87b61ea243f24.tar.bz2 android_development-04680858a0671ad615f088edeea87b61ea243f24.zip | |
docs only.
Add new web pages for sample apps included in the SDK.
Revise the existing sample app web pages.
Delete screenshots for notepad and lunar lander (these have
moved into frameworks/base/docs/html/guide/samples/image/.
Diffstat (limited to 'samples')
| -rwxr-xr-x | samples/ApiDemos/_index.html | 49 | ||||
| -rw-r--r-- | samples/Home/_index.html | 9 | ||||
| -rw-r--r-- | samples/JetBoy/_index.html | 24 | ||||
| -rw-r--r-- | samples/LunarLander/_index.html | 14 | ||||
| -rw-r--r-- | samples/LunarLander/sample_lunarlander.png | bin | 27260 -> 0 bytes | |||
| -rw-r--r-- | samples/NotePad/_index.html | 25 | ||||
| -rw-r--r-- | samples/NotePad/sample_note.png | bin | 3973 -> 0 bytes | |||
| -rw-r--r-- | samples/NotePad/sample_notepad.png | bin | 6743 -> 0 bytes | |||
| -rw-r--r-- | samples/Snake/_index.html | 10 | ||||
| -rw-r--r-- | samples/SoftKeyboard/_index.html | 7 |
10 files changed, 109 insertions, 29 deletions
diff --git a/samples/ApiDemos/_index.html b/samples/ApiDemos/_index.html index b0d1c7b5d..6b30303ee 100755 --- a/samples/ApiDemos/_index.html +++ b/samples/ApiDemos/_index.html @@ -1,19 +1,42 @@ -<p>The API Demos include sample code for many aspects of the Android APIs, from screen layout to Intent resolution. +<p>The API Demos application includes a variety of small applications +that illustrate the use of various Android APIs. It includes samples of: </p> +<ul> + <li>Notifications</li> + <li>Alarms</li> + <li>Progress Dialogs</li> + <li>Intents</li> + <li>Menus</li> + <li>Search</li> + <li>Persistent application state</li> + <li>Preferences</li> + <li>Background Services</li> + <li>App Widgets</li> + <li>Voice Recognition</li> + <li>And many many more...</li> +</ul> -<dl> - <dt><a href="src/com/example/android/apis/app/index.html">App</a></dt> - <dd></dd> +<p>You'll notice that all the samples are included in a single Android project, +so the application code and other resource files for all samples are batched together. +To help you find the code that's relevant to you, here's a directory that +points to the program code for the different topics included in the project:</p> - <dt><a href="src/com/example/android/apis/content/index.html">Content</a></dt> - <dd></dd> +<ul> + <li><a href="src/com/example/android/apis/animation/index.html">Animation</a></li> + + <li><a href="src/com/example/android/apis/app/index.html">App</a></li> + + <li><a href="src/com/example/android/apis/appwidget/index.html">App Widgets</a></li> + + <li><a href="src/com/example/android/apis/content/index.html">Content</a></li> - <dt><a href="src/com/example/android/apis/view/index.html">View</a></dt> - <dd></dd> + <li><a href="src/com/example/android/apis/graphics/index.html">Graphics</a></li> - <dt><a href="src/com/example/android/apis/graphics/index.html">Graphics</a></dt> - <dd></dd> + <li><a href="src/com/example/android/apis/media/index.html">Media</a></li> + + <li><a href="src/com/example/android/apis/os/index.html">OS</a></li> - <dt><a href="src/com/example/android/apis/text/index.html">Text</a></dt> - <dd></dd> -</dl> + <li><a href="src/com/example/android/apis/text/index.html">Text</a></li> + + <li><a href="src/com/example/android/apis/view/index.html">Views</a></li> +</ul> diff --git a/samples/Home/_index.html b/samples/Home/_index.html new file mode 100644 index 000000000..2a62812f7 --- /dev/null +++ b/samples/Home/_index.html @@ -0,0 +1,9 @@ +<p>This is a sample Home application. The Home application that users use +to launch applications by default is an ordinary application itself. +A user can install additional Home applications and pick which one to use as the +default Home. This is a sample of such an alternative.</p> + +<p>This is actually the source of an old incarnation of the default Home application, +which may look familiar if you played with some of the older pre-1.0 SDKs.</p> + +<img alt="" src="/guide/samples/images/HomeSample.png" />
\ No newline at end of file diff --git a/samples/JetBoy/_index.html b/samples/JetBoy/_index.html new file mode 100644 index 000000000..6665164b5 --- /dev/null +++ b/samples/JetBoy/_index.html @@ -0,0 +1,24 @@ +<p>JetBoy is a sample game that demonstrates the use of the +<a href="/reference/android/media/JetPlayer.html">android.media.JetPlayer</a> +class to implement an interactive music soundtrack in an application. JetBoy uses +<a href="/guide/topics/media/index.html#jet">JET content created with +JetCreator</a> and game-generated events fed to JetPlayer +to adapt the soundtrack to the user actions. Listen to how the melody picks +up when you start shooting asteroids, how you are congratulated when you +hit several asteroids in a row, or destroy enough of them in the allotted time.</p> + +<p>The JetBoyView.java file in JetBoy illustrates the loading of JET content +(loading a file, queuing segments), its playback, and how to alter what +is currently playing (use of clips and mute masks).</p> + +<p class="note"><strong>Note:</strong> +The <code>JETBOY_content/</code> directory is empty in this online presentation of +the application. For complete access to all the JetBoy files, see the sample code included +in the SDK, located at <code><sdk>/platforms/<platform>/samples/JetBoy/</code>. +</p> + +<p><strong>See also:</strong><br/> +<a href="/guide/topics/media/jet/jetcreator_manual.html">SONiVOX JETCreator User Manual</a><br/> +<a href="/reference/android/media/JetPlayer.html">JetPlayer class</a></p> + +<img alt="" src="/guide/samples/images/JetBoy.png" /> diff --git a/samples/LunarLander/_index.html b/samples/LunarLander/_index.html index 02daeef03..6287b872a 100644 --- a/samples/LunarLander/_index.html +++ b/samples/LunarLander/_index.html @@ -1,12 +1,12 @@ <p>A sample game. Your objective: to land on the moon. -It demonstrates... +It demonstrates: <ul> -<li>loading and drawing resources -<li>taking keystrokes -<li>animating by calling invalidate() from draw() -<li>handling onPause() in an animation -<li>and many other goodies... +<li>Loading and drawing resources</li> +<li>Taking keystrokes</li> +<li>Animating by calling invalidate() from draw()</li> +<li>Handling onPause() in an animation</li> +<li>And more...</li> </ul> </p> -<img height="220px" width="320px" alt="Lunar Lander Example" class="gallery" src="sample_lunarlander.png" >
\ No newline at end of file +<img alt="" src="/guide/samples/images/sample_lunarlander.png" >
\ No newline at end of file diff --git a/samples/LunarLander/sample_lunarlander.png b/samples/LunarLander/sample_lunarlander.png Binary files differdeleted file mode 100644 index ea1ef14c4..000000000 --- a/samples/LunarLander/sample_lunarlander.png +++ /dev/null diff --git a/samples/NotePad/_index.html b/samples/NotePad/_index.html index 2a1896962..92486e533 100644 --- a/samples/NotePad/_index.html +++ b/samples/NotePad/_index.html @@ -1,12 +1,19 @@ <p>A simple note pad application. -It demonstrates... +It demonstrates:</p> <ul> -<li>using views -<li>accessing a database -<li>using an intent to open a new window -<li>managing activity lifecycle -<li>and many other goodies... +<li>Using views</li> +<li>Accessing a database</li> +<li>Using an intent to open a new window</li> +<li>Managing activity lifecycle</li> +<li>And more...</li> </ul> -</p> -<img alt="Note Pad Example" class="gallery" src="sample_notepad.png" > -<img alt="Note Pad Example" class="gallery" src="sample_note.png" > + +<p class="note">Please notice that this is not the same +notepad code that's used for the <a href="/guide/tutorials/notepad/index.html">Notepad Tutorial</a>. +They are similar in nature, but there are several differences in implementation — the tutorial +is slightly more simple. If you're new to +Android development, we suggest you start with the tutorial, then visit this +code later to see more sample code.</p> + +<img alt="" src="/guide/samples/images/sample_notepad.png" /> +<img alt="" src="/guide/samples/images/sample_note.png" /> diff --git a/samples/NotePad/sample_note.png b/samples/NotePad/sample_note.png Binary files differdeleted file mode 100644 index cea1a0843..000000000 --- a/samples/NotePad/sample_note.png +++ /dev/null diff --git a/samples/NotePad/sample_notepad.png b/samples/NotePad/sample_notepad.png Binary files differdeleted file mode 100644 index c498847d2..000000000 --- a/samples/NotePad/sample_notepad.png +++ /dev/null diff --git a/samples/Snake/_index.html b/samples/Snake/_index.html new file mode 100644 index 000000000..56391b91e --- /dev/null +++ b/samples/Snake/_index.html @@ -0,0 +1,10 @@ +<p>This is an implementation of the classic Game "Snake", in which you control a +serpent roaming around the garden looking for apples. Be careful, though, +because when you catch one, not only will you become longer, but you'll move +faster. Running into yourself or the walls will end the game..</p> + +<p>This code demonstrates how to create custom View layouts and +request draws to the screen. A great example of a basic game that does not +require a fast framerate.</p> + +<img alt="" src="/guide/samples/images/Snake.png" /> diff --git a/samples/SoftKeyboard/_index.html b/samples/SoftKeyboard/_index.html new file mode 100644 index 000000000..7fc7af54b --- /dev/null +++ b/samples/SoftKeyboard/_index.html @@ -0,0 +1,7 @@ +<p>This application is an example of writing an input method for a software keyboard. +This code is focused on simplicity over completeness, so it should in no way be considered +to be a complete soft keyboard implementation. Its purpose is to provide +a basic example for how you would get started writing an input method, to +be fleshed out as appropriate.</p> + +<img alt="" src="/guide/samples/images/SoftKeyboard.png" />
\ No newline at end of file |
