[Camera] Handling the exceptions in which Camera is not there. beagle-donut beagle-donut-0x3
authorTick Chen <tick@0xlab.org>
Thu, 12 Nov 2009 17:27:20 +0000 (01:27 +0800)
committerTick Chen <tick@0xlab.org>
Thu, 12 Nov 2009 17:27:20 +0000 (01:27 +0800)
commitfdf5daeae7c8c17d49b95343f01a02b3b243eb79
tree4c8f71bb148bf1de58fed6d973ad29aefe2091b2
parent2263b6fe5467a53a34d9add22f2265e693621de1
[Camera] Handling the exceptions in which Camera is not there.
The ensureCameraDevice did not detect if camera is valid or not well.
Therefore base on current structure, make a work around that indeed
detect the camera.

Then handles the exceptions well, when camera is not there.
Retry to connect with camera when device is there.

http://code.google.com/p/0xdroid/issues/detail?id=40
src/com/android/camera/Camera.java
src/com/android/camera/CameraHolder.java
src/com/android/camera/VideoCamera.java