diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-12-17 16:34:17 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-12-17 16:45:41 +0800 |
commit | 8303435a2466803e05dd99c60cdb2de074b79162 (patch) | |
tree | 93e584e3481f1327e6b99de5ac498ae15d929d38 /src/com | |
parent | fba0439b62f19a2a19ff6559c1ae055e910400db (diff) | |
download | LegacyCamera-8303435a2466803e05dd99c60cdb2de074b79162.zip LegacyCamera-8303435a2466803e05dd99c60cdb2de074b79162.tar.gz LegacyCamera-8303435a2466803e05dd99c60cdb2de074b79162.tar.bz2 |
Add debug messages for record location.
bug:3258991
Change-Id: I1dcac9d86e34e2b6b28e4a09a3b88bbfa77d9195
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/camera/Camera.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index d8c7d87..521bbdb 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -617,6 +617,9 @@ public class Camera extends NoSearchActivity implements View.OnClickListener, } showGpsOnScreenIndicator(true); } + if (!mValid) { + Log.d(TAG, "Got first location."); + } mLastLocation.set(newLocation); mValid = true; } @@ -899,6 +902,7 @@ public class Camera extends NoSearchActivity implements View.OnClickListener, boolean hasLatLon = (lat != 0.0d) || (lon != 0.0d); if (hasLatLon) { + Log.d(TAG, "Set gps location"); mParameters.setGpsLatitude(lat); mParameters.setGpsLongitude(lon); mParameters.setGpsProcessingMethod(loc.getProvider().toUpperCase()); @@ -2085,6 +2089,7 @@ public class Camera extends NoSearchActivity implements View.OnClickListener, } catch (IllegalArgumentException ex) { Log.d(TAG, "provider does not exist " + ex.getMessage()); } + Log.d(TAG, "startReceivingLocationUpdates"); } } @@ -2097,6 +2102,7 @@ public class Camera extends NoSearchActivity implements View.OnClickListener, Log.i(TAG, "fail to remove location listners, ignore", ex); } } + Log.d(TAG, "stopReceivingLocationUpdates"); } hideGpsOnScreenIndicator(); } @@ -2107,6 +2113,7 @@ public class Camera extends NoSearchActivity implements View.OnClickListener, Location l = mLocationListeners[i].current(); if (l != null) return l; } + Log.d(TAG, "No location received yet."); return null; } |