diff --git a/phoneClients/android/.idea/workspace.xml b/phoneClients/android/.idea/workspace.xml index 9ac1cd0..2edc532 100644 --- a/phoneClients/android/.idea/workspace.xml +++ b/phoneClients/android/.idea/workspace.xml @@ -41,6 +41,7 @@ + @@ -96,8 +97,8 @@ @@ -108,7 +109,7 @@ - + @@ -118,12 +119,9 @@ - - - - - - + + + @@ -991,6 +989,8 @@ + + @@ -1194,8 +1194,6 @@ - - @@ -1262,6 +1260,19 @@ @@ -1903,18 +1901,14 @@ - - - - - - - + + + diff --git a/phoneClients/android/app/src/main/java/com/websmithing/gpstracker/LocationService.java b/phoneClients/android/app/src/main/java/com/websmithing/gpstracker/LocationService.java index f2d0fef..472dbbe 100644 --- a/phoneClients/android/app/src/main/java/com/websmithing/gpstracker/LocationService.java +++ b/phoneClients/android/app/src/main/java/com/websmithing/gpstracker/LocationService.java @@ -167,7 +167,7 @@ if (location != null) { Log.e(TAG, "position: " + location.getLatitude() + ", " + location.getLongitude() + " accuracy: " + location.getAccuracy()); - // we have our desired accuracy of 100 meters so lets quit this service, + // we have our desired accuracy of 500 meters so lets quit this service, // onDestroy will be called and stop our location uodates if (location.getAccuracy() < 500.0f) { stopLocationUpdates(); @@ -195,7 +195,7 @@ locationRequest = LocationRequest.create(); locationRequest.setInterval(1000); // milliseconds locationRequest.setFastestInterval(1000); // the fastest rate in milliseconds at which your app can handle location updates - locationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY); + locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY); locationClient.requestLocationUpdates(locationRequest, this); }