Sample code in 50AndroidHacks