guide=true page.title=Sample Code @jd:body

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.

The source code for these applications is included in the Android SDK, in this location:

<sdk>/samples/

You can easily add these applications as projects in your development environment, so that you can modify them and watch them execute.

API Demos
A variety of small applications that demonstrate simple views and widgets.
Lunar Lander
A classic Lunar Lander game.
Note Pad
An application for saving notes. Similar (but not identical) to the Notepad tutorial.