commit | c5c912e49bdc89a7a7778b66d1ca6b00440d2888 | [log] [tgz] |
---|---|---|
author | Android (Google) Code Review <android-gerrit@google.com> | Tue Aug 11 10:31:48 2009 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Aug 11 10:31:48 2009 -0700 |
tree | cae9bbb92f531d95a125a4c8d543aeaa24035d4c | |
parent | e89d6042a3ede1a68699a32d0bd5da01485562a9 [diff] | |
parent | 5dfeb0e195c79915d47ebc61ec1b1e2375264a22 [diff] |
Merge change 20717 into donut * changes: Release the camera in surfaceDestroyed().
diff --git a/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.java b/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.java index ceff150..e3cf976 100644 --- a/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.java +++ b/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.java
@@ -78,6 +78,7 @@ // Because the CameraDevice object is not a shared resource, it's very // important to release it when the activity is paused. mCamera.stopPreview(); + mCamera.release(); mCamera = null; }