My working version of following the examples in "Android Programming The Big Nerd Ranch Guide".