Hi to all,
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
https://www.b4x.com/android/forum/threads/48785/#content
https://www.b4x.com/android/forum/t...va-code-inside-the-b4a-project.48367/#content
Someone was able to turn flash led on/off, for a non camera purpose?
As a workaround, it is possible to call the torch command (Sony and Huawey have the Torch icon, once you swipe down the notification bar) via Intent.
Hope I explained well, i'm not a b4a expert user and also my english is not so good.
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
https://www.b4x.com/android/forum/threads/48785/#content
https://www.b4x.com/android/forum/t...va-code-inside-the-b4a-project.48367/#content
Someone was able to turn flash led on/off, for a non camera purpose?
As a workaround, it is possible to call the torch command (Sony and Huawey have the Torch icon, once you swipe down the notification bar) via Intent.
Hope I explained well, i'm not a b4a expert user and also my english is not so good.
Last edited: