This collection of "Hello World"-style tutorials is designed
to get you quickly started with common Android Views and widgets. The aim is to let you copy and paste
these kinds of boring bits so you can focus on developing the code that makes your Android application rock.
Of course, we'll discuss some of the given code so that it all makes sense.
Note that a certain amount of knowledge is assumed for these tutorials. If you haven't
completed the Hello, World tutorial,
please do so—it will teach you many things you should know about basic
Android development and Eclipse features. More specifically, you should know:
- How to create a new Android project.
- The basic structure of an Android project (resource files, layout files, etc.).
- The essential components of an Activity.
- How to build and run a project.
Please, also notice that, in order to make these tutorials simple, some may
not convey the better Android coding practices. In particular, many of them
use hard-coded strings in the layout files—the better practice is to reference strings from
your strings.xml file.
With this knowledge, you're ready to begin, so take your pick.
There are plenty more Views and widgets available. See the View class
for more on View layouts, and the widget package
for more useful widgets. And for more raw code samples, visit the
These can also be found offline, in