Added code through p.70 in "The Beginner's Guide To Android Game Development".