Introduction - If you have any usage issues, please Google them yourself
Android SDK supports the connectivity to the built-in camera. Using the camera to take photos is relatively easy. It is somewhat harder to setup the camera preview to work properly.
In our main activity, we create the Preview object. This object will create the Camera object and return it to the CameraDemo activity.
Next we register couple of call-back method with the Camera to be performed when the user takes a photo.