Skip to content

Update CameraUtilICS.java#5

Open
rcaboni wants to merge 1 commit into
Abhi347:masterfrom
rcaboni:patch-1
Open

Update CameraUtilICS.java#5
rcaboni wants to merge 1 commit into
Abhi347:masterfrom
rcaboni:patch-1

Conversation

@rcaboni
Copy link
Copy Markdown

@rcaboni rcaboni commented Feb 23, 2017

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)

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)
@Abhi347
Copy link
Copy Markdown
Owner

Abhi347 commented Feb 27, 2017

@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.

@rcaboni
Copy link
Copy Markdown
Author

rcaboni commented Feb 28, 2017

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 ).

@Changsik00
Copy link
Copy Markdown

Changsik00 commented Jul 4, 2017

noobCameraManager.init(getActivity(), LogLevel.Verbose);

it was getActivity() not working MainActivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants