I am taking photo capture using front camera using my custom camera app not using system camera app.But the captured photo is very dark so can see photo properly.
my code
mCamera = Camera.open(1);
Camera.Parameters params =mCamera.getParameters();
params.setSceneMode(Camera.Parameters.SCENE_MODE_NIGHT);
mCamera.setParameters(params);
And to take picture
if (mCamera != null) {
try {
mCamera.setPreviewDisplay(mSurfaceHolder);
mCamera.startPreview();
mCamera.takePicture(null, mPictureCallback,
mPictureCallback);
} catch (IOException e) {
e.printStackTrace();
}
}
Thanks in advance. Please give me suggestions. any help will be appreciated.