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.
shutterCallback
is called when the shutter is opened and picture is taken. rawCallback
and jpegCallback
will get the data for the raw and jpeg encoding of the photo. It's up
to you to do something with this data, such as save it to the SD card.
No comments:
Post a Comment