Example code from the Android User Interface Design book