summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-05-05 14:36:28 +0800
committerWu-cheng Li <wuchengli@google.com>2011-05-05 14:36:28 +0800
commit26274fae33b7b056cf5fe9fd6e823cae9e4ddae2 (patch)
tree47c889ab54e0f856596805b4cdc5218ac11c379b /core/java/android
parentf3cd1d957c0d709a4704722b6397c934c1a770b8 (diff)
Improve camera javadoc.
Preview has to be stopped before chaning preview size. Change-Id: I6ab30402b2270eed9606a69ebce43ae58e0776a8
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/hardware/Camera.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java
index 9011f733235b..6d955e72f1f1 100644
--- a/core/java/android/hardware/Camera.java
+++ b/core/java/android/hardware/Camera.java
@@ -1568,7 +1568,9 @@ public class Camera {
}
/**
- * Sets the dimensions for preview pictures.
+ * Sets the dimensions for preview pictures. If the preview has already
+ * started, applications should stop the preview first before changing
+ * preview size.
*
* The sides of width and height are based on camera orientation. That
* is, the preview size is the size before it is rotated by display