diff options
author | James Dong <jdong@google.com> | 2011-05-19 11:51:37 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-05-19 11:51:37 -0700 |
commit | 3c707256cf238354524a9cac2b539259328bb035 (patch) | |
tree | 1f5880b3b4414984a70fbb0ffa138734deb54ec7 /media | |
parent | b568b51255256a8c9bdf6463cca185f813f28caa (diff) | |
parent | af3131fe2e20c7b5e080d098a3b6847c5414bcae (diff) | |
download | frameworks_base-3c707256cf238354524a9cac2b539259328bb035.zip frameworks_base-3c707256cf238354524a9cac2b539259328bb035.tar.gz frameworks_base-3c707256cf238354524a9cac2b539259328bb035.tar.bz2 |
Merge "Publish setLocation() method as a public Java API"
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/MediaRecorder.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/media/java/android/media/MediaRecorder.java b/media/java/android/media/MediaRecorder.java index 0f5a440..38202f2 100644 --- a/media/java/android/media/MediaRecorder.java +++ b/media/java/android/media/MediaRecorder.java @@ -347,7 +347,7 @@ public class MediaRecorder } /** - * Store the geodata (latitude and longitude) in the output file. + * Set and store the geodata (latitude and longitude) in the output file. * This method should be called before prepare(). The geodata is * stored in udta box if the output format is OutputFormat.THREE_GPP * or OutputFormat.MPEG_4, and is ignored for other output formats. @@ -361,18 +361,17 @@ public class MediaRecorder * @throws IllegalArgumentException if the given latitude or * longitude is out of range. * - * {@hide} */ - public void setGeoData(float latitude, float longitude) { + public void setLocation(float latitude, float longitude) { int latitudex10000 = (int) (latitude * 10000 + 0.5); int longitudex10000 = (int) (longitude * 10000 + 0.5); if (latitudex10000 > 900000 || latitudex10000 < -900000) { - String msg = "Unsupported latitude: " + latitude; + String msg = "Latitude: " + latitude + " out of range."; throw new IllegalArgumentException(msg); } if (longitudex10000 > 1800000 || longitudex10000 < -1800000) { - String msg = "Unsupported longitude: " + longitude; + String msg = "Longitude: " + longitude + " out of range"; throw new IllegalArgumentException(msg); } |