I'am trying to use the flash led of the phone like a Torch. I searched the community and found some examples (listed below), but none of them work in newer phone.
To be more specific:
- Motorola XT1039, Android 5: All example works
- Sony Z5 Compact, Android 7: No Example Work
- Huawey P10 Lite, Android 8: No Example Work
Hi, try if this works for you, it's written using B4A and inline java to support newer phones. It works for me on android 8.
If it works I'll post the relevant inline java code.
I Tried to give a look at the camera2 example (the flash works in the process of taking photos), but it too complicated for my skill. I tried to modify the example to see if I was able to turn the flash led persistent on, but without success.
Hi, try if this works for you, it's written using B4A and inline java to support newer phones. It works for me on android 8.
If it works I'll post the relevant inline java code.
I Tried to give a look at the camera2 example (the flash works in the process of taking photos), but it too complicated for my skill. I tried to modify the example to see if I was able to turn the flash led persistent on, but without success.
I tried your app, and seems to work! I would appreciate if you could post the relevant code.