Search code examples
androidlockingandroid-camerapanoramas

Android camera auto exposure lock on taking multiple pictures


I'm using auto exposure lock feature on android camera, but it's losing the lock after I take a picture, what I want is to lock exposure for taking a sevral pictures like for my case: I have to take a panorama pictures with the same exposure ( same exposure lock ).

Thank you


Solution

  • Yes Thank you, I have done that by storing exposure, brightness and focus current level when taking the first picture, then lock everything to it's values everytime I take a picture I do relock them, because It loses the Lock everytime PictureTaken Callback.. I got A good Result

    Get funcions

    public int getExposure() {
        expousreSet = true;
        return parameters.getExposureCompensation();
    }
    

    Then

        if (exposureSet == true) {
            parameters.setExposureCompensation(currentExposure);
            parameters.setAutoExposureLock(true);
        }