Code example for Camera.Parameters

Methods: getSupportedFocusModes

0
        } 
    } 
 
    public void shutterLongPressed() { 
        if (Parameters.FOCUS_MODE_CONTINUOUS_PICTURE.equals(mFocusMode)
                && isSupported(Parameters.FOCUS_MODE_AUTO, mParameters.getSupportedFocusModes())) {
            if (mState == STATE_IDLE || mState == STATE_FOCUSING_SNAP_ON_FINISH) {
                Log.e(TAG, "Invalid focus state=" + mState);
            } 
            mInLongPress = true;
            // Cancel any outstanding Auto focus requests. The auto focus mode 
            // will be changed from CAF to auto in cancelAutoFocus. 
            onShutterUp(); 
            // Call Autofocus 
            onShutterDown(); 
            mInLongPress = false;
        } 
    } 
 
    public void doSnap() { 
        if (!mInitialized) return;