I think CommonsWare has already answered most of this question, but it might work for auto focus and shutter sound. This is an assumption since I am not on a machine where I can compile / test it all.
In your push-button control code, I believe you should call (possibly by sending messages)
camera.autoFocus(new Camera.AutoFocusCallback() { Camera.ShutterCallback shutterCallback = new Camera.ShutterCallback() { public void onShutter() {
where camera is your camera object, and photoCallback matches the CommonsWare example.
What exactly are you stuck with?
Oh, and don't forget to add the <uses-feature> android.hardware.camera.autofocus . :)
Mikael Ohlson May 04 '10 at 18:00 2010-05-04 18:00
source share