Android sample of working with orientations from the book "Beginning Android 4 Application Development" by Wei-Meng Lee