Source code for this example can be downloaded from the Google Code repository (as an Eclipse project).