Camera settings for Android - change exposure programmatically

I am writing an Android application that simply displays a camera preview. I also change some camera settings, such as exposure, as shown below:

Camera.Parameters params = mCamera.getParameters(); params.setExposureCompensation(params.getMaxExposureCompensation()); // maximum mCamera.setParameters(params); mCamera.startPreview(); 

However, when I launch the standard application for the camera and set the maximum exposure (2), it is much brighter than my preview. Any idea why my application view is not as bright as the standard camera view?

+1
android android camera
source share
1 answer

The above code really worked fine.

I tried to study some open source applications and found that they also increase brightness along with exposure.

0
source share

All Articles