Location Provider from http://developer.android.com/training/location/location-testing.html adapted for android studio 0.8x with gradle.