Code example for Camera

Methods: setOneShotPreviewCallback

0
     */ 
    public void requestPreviewFrame(Handler handler, int message)
    { 
        if (_camera != null && _previewing) {
            previewCallback.setHandler(handler, message);
            _camera.setOneShotPreviewCallback(previewCallback);
        } 
    } 
 
    /** 
     * Asks the _camera hardware to perform an autofocus. 
     *  
     * @param handler 
     *            The Handler to notify when the autofocus completes. 
     * @param message 
     *            The message to deliver. 
     */ 
    public void requestAutoFocus(Handler handler, int message)
    { 
        if (_camera != null && _previewing) {
            autoFocusCallback.setHandler(handler, message);