The example code from the Beginning Android presentation