diff --git a/README.md b/README.md index ddb7817..d211fca 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ This version changes the UI of the android app from two buttons (Save and Track) to one button (Track). -![gpstrackerandroid](https://www.websmithing.com/images/gpstracker3.2.1.png) +![gpstrackerandroid](https://raw.githubusercontent.com/nickfox/GpsTracker/master/phoneClients/android/gpstracker3.2.1.png) and the android version is now in Google Play: diff --git a/phoneClients/android/.idea/workspace.xml b/phoneClients/android/.idea/workspace.xml index ca3d886..1b91b19 100644 --- a/phoneClients/android/.idea/workspace.xml +++ b/phoneClients/android/.idea/workspace.xml @@ -41,6 +41,8 @@ + + @@ -95,8 +97,8 @@ @@ -107,51 +109,18 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -935,10 +904,10 @@ @@ -990,8 +959,6 @@ - - @@ -1186,6 +1153,8 @@ + + @@ -1205,7 +1174,7 @@ - + @@ -1252,19 +1221,6 @@ @@ -1602,17 +1571,15 @@ + + + - - - + - - - @@ -1840,24 +1807,40 @@ + + + + + + + + + + + + + + + + - + + + + - - - @@ -1867,26 +1850,10 @@ - - - - - - - - - - - - - - - - - - + + 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 142ce74..e29a488 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 @@ -52,6 +52,7 @@ // if we are currently trying to get a location and the alarm manager has called this again, // no need to start processing a new location. if (!currentlyProcessingLocation) { + currentlyProcessingLocation = true; startTracking(); } @@ -61,8 +62,6 @@ private void startTracking() { Log.d(TAG, "startTracking"); - currentlyProcessingLocation = true; - if (GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) == ConnectionResult.SUCCESS) { locationClient = new LocationClient(this,this,this);