From 40057ce749c8c4d274db0352a2af4344bda92dba Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Wed, 2 Dec 2009 18:57:29 +0800 Subject: [PATCH] Document that stopPreview is not needed before takePicture. Also, applications can call startPreview after jpeg callback is received. http://b/2292461 --- core/java/android/hardware/Camera.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java index 4b733ef334dbd..ac159f4f311bd 100644 --- a/core/java/android/hardware/Camera.java +++ b/core/java/android/hardware/Camera.java @@ -477,6 +477,10 @@ public class Camera { * application does not need a particular callback, a null can be passed * instead of a callback method. * + * This method will stop the preview. Applications should not call {@link + * #stopPreview()} before this. After jpeg callback is received, + * applications can call {@link #startPreview()} to restart the preview. + * * @param shutter callback after the image is captured, may be null * @param raw callback with raw image data, may be null * @param jpeg callback with jpeg image data, may be null @@ -500,6 +504,10 @@ public class Camera { * application does not need a particular callback, a null can be passed * instead of a callback method. * + * This method will stop the preview. Applications should not call {@link + * #stopPreview()} before this. After jpeg callback is received, + * applications can call {@link #startPreview()} to restart the preview. + * * @param shutter callback after the image is captured, may be null * @param raw callback with raw image data, may be null * @param postview callback with postview image data, may be null