Here is the link to the part of the Android Camera API that you need: http://developer.android.com/reference/android/hardware/Camera.Parameters.html
In the camera settings you call:
mCamera = camera; Camera.Parameters params = mCamera.getParameters(); params.setRotation(getCameraOrientation()); params.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO); params.setFlashMode(Camera.Parameters.FLASH_MODE_ON); mCamera.setParameters(params);
What you are really interested in is:
setExposureCompensation(int value) setColorEffect(String value) setAutoExposureLock(boolean toggle) getExposureCompensation()
Do not forget to unlock AE if you want to use it :)
You should also set it to autofocus in order to take pictures, as it was in my example, and a flash will also help, although it will make you take longer between images.
source share