OSDN Git Service

Release the camera in surfaceDestroyed().
authorWu-cheng Li <wuchengli@google.com>
Tue, 11 Aug 2009 09:26:35 +0000 (17:26 +0800)
committerWu-cheng Li <wuchengli@google.com>
Tue, 11 Aug 2009 09:30:15 +0000 (17:30 +0800)
commit5dfeb0e195c79915d47ebc61ec1b1e2375264a22
tree9c4dac65e2adb2741472747051757b6b59b18d0f
parente2778775411c3ef8d2d20351963715904135e9ec
Release the camera in surfaceDestroyed().

If the camera is not released, the new client will fail to connect to camera next time. b2042350
samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.java