The source code for the Android mobile application open-gpstracker which you appreciated is available here.
You can checkout the code using SVN client application or via Git:
- svn checkout http://open-gpstracker.googlecode.com/svn/trunk/ open-gpstracker-read-only
- git clone https://code.google.com/p/open-gpstracker/
Debugging the source code will surely help you.