Sample code for "Advanced Android Application Development, Fourth Edition"