Update CameraUtilICS.java
There is a little bug for "old" Android (before 5). I add startPreview and stopPreview to fix it. I try it on Samsung S4 Mini (Android 4.4.4)
@rcaboni Thanks for the fix, but can you please provide some more details about the bug, so that I can test it and check whether it exists on other devices. I also need the details to know whether the fix will affect apps in other Android versions or not.
Hi Abhi, the problem is only for Android before LOLLIPOP, indeed i fix the CameraUtilICS file. The bug is that the only setTorchMode(TorchMode.SwitchedOn); is not enough to turn on the flash but it's essential to call mCamera.startPreview(); too. Without this the flash don't turn on. The same fix for turn off the flash.
I check the problem and the fix it on Samsung S3 Mini, S4 Mini, XCover 2. Before the fix the flash don't turn on in these devices with Android 4.x. i notice your library that work on all Android version, but without this fix we spoil "old" Android version (still an important piece of market ).
noobCameraManager.init(getActivity(), LogLevel.Verbose);
it was getActivity() not working MainActivity