Created
January 6, 2019 13:14
-
-
Save mizutori/793f1222bf389a61733edace80abb621 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override fun onLocationChanged(newLocation: Location?) { | |
newLocation?.let{ | |
Log.d(LOG_TAG, "(" + it.latitude + "," + it.longitude + ")") | |
gpsCount++ | |
if (isLogging) { | |
//locationList.add(newLocation); | |
filterAndAddLocation(it) | |
} | |
val intent = Intent("LocationUpdated") | |
intent.putExtra("location", it) | |
LocalBroadcastManager.getInstance(this.application).sendBroadcast(intent) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment