G grafsoft Well-Known Member Licensed User Longtime User Dec 13, 2015 #1 I set the flash mode to "on", I check it (see the log statement), but the camera does not flash. The built-in camera app works perfectly. B4X: Sub Btnclick_Click timer2.Enabled=True Try camEx.TakePicture Dim tm As String tm=camEx.GetFlashMode Log ("tm=" & tm) ...
I set the flash mode to "on", I check it (see the log statement), but the camera does not flash. The built-in camera app works perfectly. B4X: Sub Btnclick_Click timer2.Enabled=True Try camEx.TakePicture Dim tm As String tm=camEx.GetFlashMode Log ("tm=" & tm) ...
Erel B4X founder Staff member Licensed User Longtime User Dec 13, 2015 #2 This code takes a picture. It doesn't set the flash mode. Upvote 0
G grafsoft Well-Known Member Licensed User Longtime User Dec 14, 2015 #3 I know that. I set the flash mode before with SetFlashMode. And in my example the log is "tm=on". That means that the flash should work. But it does not. Upvote 0
I know that. I set the flash mode before with SetFlashMode. And in my example the log is "tm=on". That means that the flash should work. But it does not.
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2015 #4 What is the output of: B4X: Log(CamEx.GetSupportedFlashModes) Upvote 0
G grafsoft Well-Known Member Licensed User Longtime User Dec 14, 2015 #5 (ArrayList) [off, on, auto, red-eye, torch] Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2015 #6 Are you setting it in the Camera ready event (before calling commit)? If yes, then your device ignores this parameter. Upvote 0
Are you setting it in the Camera ready event (before calling commit)? If yes, then your device ignores this parameter.
G grafsoft Well-Known Member Licensed User Longtime User Dec 14, 2015 #7 Stupid me, I should have known that. Now it works. Thank you! Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 14, 2015 #8 This is why it is important to post the relevant code Upvote 0