Ask Your Question

Revision history [back]

I experienced this upgrading from 4.1.0 to 4.1+ the problem was in our project we were not using the CameraActivity.java class provided but an implementation of CameraBridgeViewBase

Before and in 4.1.0 CameraBridgeViewBase asks in method checkCurrentState() for 3 conditions which must be true in order to give preview.

For latter versions 4.1+ it asks for an additional flag mCameraPermissionGranted to be also be true.

If you check the samples you will find all Activities extend CameraActivity that sets this flag true with cameraBridgeViewBase.setCameraPermissionGranted()

So afer putting that line in our code the preview started showing again.

Hope it can help, if it's not too late.