i have been developing a camera app in which i want to set the camera in auto mode,i tried the following
private void getCamera() {{
try {
camera = Camera.open();
params = camera.getParameters();
params.setFlashMode(Camera.Parameters.FLASH_MODE_AUTO);
camera.setParameters(params);
camera.startPreview();
} catch (RuntimeException e) {
}
since the camera class is deprecated this won't work.i couldn't find any alternative for this