Code examples from The Essentials of Android Application Development LiveLessons, 2nd Edition