2008-10-21 07:00:00 -07:00
|
|
|
guide=true
|
2009-02-19 10:57:31 -08:00
|
|
|
page.title=Sample Code
|
2008-10-21 07:00:00 -07:00
|
|
|
@jd:body
|
|
|
|
|
|
|
|
|
2009-02-19 10:57:31 -08:00
|
|
|
<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 some simple Android applications. </p>
|
2008-10-21 07:00:00 -07:00
|
|
|
|
2009-02-19 10:57:31 -08:00
|
|
|
<p>The source code for these applications is included in the Android SDK, in this location:</p>
|
|
|
|
|
|
|
|
<p style="margin-left:2em"><code><sdk>/samples/</code></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>
|
2008-10-21 07:00:00 -07:00
|
|
|
<dl>
|
2008-12-17 18:05:43 -08:00
|
|
|
<dt><a href="ApiDemos/index.html">API Demos</a></dt>
|
2008-10-21 07:00:00 -07:00
|
|
|
<dd>A variety of small applications that demonstrate simple views and widgets.</dd>
|
2008-12-17 18:05:43 -08:00
|
|
|
<dt><a href="LunarLander/index.html">Lunar Lander</a></dt>
|
2008-10-21 07:00:00 -07:00
|
|
|
<dd>A classic Lunar Lander game.</dd>
|
2008-12-17 18:05:43 -08:00
|
|
|
<dt><a href="NotePad/index.html">Note Pad</a></dt>
|
2008-10-21 07:00:00 -07:00
|
|
|
<dd>An application for saving notes. Similar (but not identical) to the
|
2008-12-17 18:05:43 -08:00
|
|
|
<a href="{@docRoot}guide/tutorials/notepad/index.html">Notepad tutorial</a>.</dd>
|
2009-02-19 10:57:31 -08:00
|
|
|
</dl>
|