Hi I am developing a custom video app. I am able to get the currentCameraId
by
currentCameraId = Camera.CameraInfo.CAMERA_FACING_BACK;
I have two questions to ask:
1) How to detect android devices with only front camera.
Because on tablets with only front camera like in Micromax tab, the currentCameraId
is 0.
2) How to check camera flash availability as the below code is not working on some of the phones
flash = this.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);
Please Help.
Thanks!