summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2011-11-15 20:21:41 +0800
committerAngus Kong <shkong@google.com>2011-11-15 20:21:41 +0800
commitf3a22b8ec6f172831606598663dead220f76957b (patch)
treec65f1f44a52657d9e7aa2a5a174f121050a467b1 /src
parent34238165cfdf04584587360dfcf21109bf09e144 (diff)
downloadLegacyCamera-f3a22b8ec6f172831606598663dead220f76957b.zip
LegacyCamera-f3a22b8ec6f172831606598663dead220f76957b.tar.gz
LegacyCamera-f3a22b8ec6f172831606598663dead220f76957b.tar.bz2
Add location information in Camcorder mode.
bug:5560253 Change-Id: I090722d6755068fa4a70a900e18af28a1adc9bf1
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/android/camera/VideoCamera.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index f725f43..004c36a 100755
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -1386,6 +1386,11 @@ public class VideoCamera extends ActivityBase
mCurrentVideoValues.put(Video.Media.RESOLUTION,
Integer.toString(mProfile.videoFrameWidth) + "x" +
Integer.toString(mProfile.videoFrameHeight));
+ Location loc = mLocationManager.getCurrentLocation();
+ if (loc != null) {
+ mCurrentVideoValues.put(Video.Media.LATITUDE, loc.getLatitude());
+ mCurrentVideoValues.put(Video.Media.LONGITUDE, loc.getLongitude());
+ }
Log.v(TAG, "New video filename: " + mVideoFilename);
}