Android camera preview is dark
I am trying to create a custom camera app. I followed the Android Developer example from here with minor tweaks. However, my camera preview turns out to be rather dark. On the other hand, the stock camera gives a much brighter preview. I have tried several settings to make it work better but it seems none of them are having any impact. Relevant code is posted here. CameraActivity (Main) protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_camera); if(CameraHelper.checkCameraHardware(this)) { mHelper = new CameraHelper(this,