Took Google's open source MyTracks and got it building with Android Studio + Gradle.