Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public void onLocationChanged(final Location newLocation) {
  2. Log.d(TAG, "(" + newLocation.getLatitude() + "," + newLocation.getLongitude() + ")");
  3.  
  4. gpsCount++;
  5.  
  6. if(isLogging){
  7. //locationList.add(newLocation);
  8. filterAndAddLocation(newLocation);
  9. }
  10.  
  11. Intent intent = new Intent("LocationUpdated");
  12. intent.putExtra("location", newLocation);
  13.  
  14. LocalBroadcastManager.getInstance(this.getApplication()).sendBroadcast(intent);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement