summaryrefslogtreecommitdiffstats
path: root/docs/html/guide/samples/index.jd
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-11-18 14:08:08 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-11-18 14:08:08 -0800
commitafcd516e3e6378aaf97ff44b0b9ea233223ded65 (patch)
tree120a8280f87840ec89e31f53bb8fd5618b0409ba /docs/html/guide/samples/index.jd
parent00ecac957c4a5d2df132640ff418280d969e7d83 (diff)
parent8d86952068750b1b3c3f8cac967e2b5fcb1a83ae (diff)
downloadframeworks_base-afcd516e3e6378aaf97ff44b0b9ea233223ded65.zip
frameworks_base-afcd516e3e6378aaf97ff44b0b9ea233223ded65.tar.gz
frameworks_base-afcd516e3e6378aaf97ff44b0b9ea233223ded65.tar.bz2
Merge change Iaae72f66 into eclair-sdk
* changes: docs: misc edits to samples page and intro docs make samples page accessible from offline version instead of redirecting to the user filesystem and include instructions for creating projects based on the sample apps. fix a link and add some content to the What is android doc.
Diffstat (limited to 'docs/html/guide/samples/index.jd')
-rw-r--r--docs/html/guide/samples/index.jd46
1 files changed, 36 insertions, 10 deletions
diff --git a/docs/html/guide/samples/index.jd b/docs/html/guide/samples/index.jd
index 6e79d50..06aa83c 100644
--- a/docs/html/guide/samples/index.jd
+++ b/docs/html/guide/samples/index.jd
@@ -3,28 +3,44 @@ page.title=Sample Code
@jd:body
-<p>Sometimes, the best way to learn how things are done is to just look at some code. So here
- we've provided links to let you browse the source of some sample Android applications included
-in the Android SDK. </p>
+<p>Sometimes, the best way to learn how things are done is to look at some code.
+Here, you can browse the source of some sample Android applications that are included
+in the Android SDK.</p>
-<p>The SDK includes a full set of sample applications for each Android platform version
-in the SDK. You can find the sample applications for each platform version in this location:</p>
+<p>Each version of the Android platform available for the SDK includes a full set of sample
+applications (which may vary between different versions of the platform).
+You can find the samples in your SDK at:</p>
-<p style="margin-left:2em"><code>&lt;sdk&gt;/platforms/android-&lt;version&gt;/samples/</code></p>
+<p style="margin-left:2em">
+<code><em>&lt;sdk&gt;</em>/platforms/android-<em>&lt;version&gt;</em>/samples/</code>
+</p>
+
+<p>You can easily create new Android projects with these samples, modify them
+if you'd like, then run them on an emulator or device. For example, to create
+a project for the API Demos app from Eclipse,
+start a new Android Project, select "Create project from existing source", then select
+{@code ApiDemos} in the {@code samples/} directory. To create the API Demos project
+using the {@code android} tool, execute:</p>
+<pre>
+android update project -s -n API Demos -t <em>&lt;target_ID></em> -p <em>&lt;path-to-platform></em>/samples/ApiDemos/
+</pre>
+
+<p>The pages below provide an overview of each sample application (available with most
+platforms) and allow you to view the source files in your browser. </p>
-<p>You can easily add these applications as projects in your development environment, so that you
-can modify them and watch them execute. </p>
<dl>
<dt><a href="ApiDemos/index.html">API Demos</a></dt>
- <dd>A variety of small applications that demonstrate an extensive collection of framework topics.</dd>
+ <dd>A variety of small applications that demonstrate an extensive collection of
+ framework topics.</dd>
<dt><a href="Home/index.html">Home</a></dt>
<dd>An application for saving notes. Similar (but not identical) to the
<a href="{@docRoot}guide/tutorials/notepad/index.html">Notepad tutorial</a>.</dd>
<dt><a href="JetBoy/index.html">JetBoy</a></dt>
- <dd>JetBoy is a game that demonstrates the SONiVOX JET interactive music technology, with {@link android.media.JetPlayer}.</dd>
+ <dd>JetBoy is a game that demonstrates the SONiVOX JET interactive music technology,
+ with {@link android.media.JetPlayer}.</dd>
<dt><a href="LunarLander/index.html">Lunar Lander</a></dt>
<dd>A classic Lunar Lander game.</dd>
@@ -44,3 +60,13 @@ can modify them and watch them execute. </p>
<dd>An example of writing an input method for a software keyboard.</dd>
</dl>
+
+
+<div class="special">
+<p>For more sample applications, check out
+<a href="http://code.google.com/p/apps-for-android/">apps-for-android</a>, a
+collection of open source applications that demonstrate various Android APIs.
+</p>
+</div>
+
+