When you call autoFocus(), you get a callback after focus is completed
with a success or fail indicator. This is where you would display your
in-focus indicator in the view finder. If the user releases the
shutter button, then the app does nothing. If the user presses the
shutter button, you call takePicture().

We don't have an API that supports continuous auto-focus. This is
where the user holds the shutter half-down and the lens is
continuously. This is an enhancement that will probably come in the
Donuts release.

On Feb 10, 8:24 am, steve2641 <[email protected]> wrote:
> Hi,
>
> I'm trying to understand how to implement a solution for a two stage
> camera key.  There is an "autoFocus()" call in the Java world which
> translates down to an "autoFocus()" call CameraHardwareInterface.
> This seems to be the proper place to direct the camera key half press
> event, but how is the release event of camera key half press
> communicated down to the CameraHardwareInterface?
>
> A typical scenario for the camera key half press is that a number of
> algorithms are kicked off and at the completion the results are locked
> in until either a capture occurs or the user releases the camera key.
> The case of a capture occuring is handled by the APIs, but again the
> case where the user releases the camera key does not seems to be
> considered, or I'm totally missing it :)
>
> One of the more common, and obvious, examples of the use of a camera
> key half press release event/call is the focus indication.  On many
> cameras, and some mobile devices, when the user half presses the
> camera key an indication of the focus state is shown in preview
> window.  This indication will often be a small box in the center of
> the window.  While the user continues to hold the camera key in the
> half pressed state, this indication will stay on the screen.  When the
> user releases the camera key, this indication will disappear.  In
> order to allow this indication to be drawn within the
> CameraHardwareInterface implementation, as well as to unlock the other
> less obvious half press features, a half press release event/call is
> needed.
>
> Thoughts?
>
> Steve.
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to