Unsolved ANDROID TORCH PROBLEM.
-
Hi, i want to turn on the flash light of the Android Phone. I added the Flash and Camera permission . But not work.
Someone can help me?Torch{ id:torch power:75 enabled: true }
-
@edoardo.videx from Torch QML type documentation:
If the torch functionality is shared with the camera flash hardware, the camera will take priority over torch settings and the torch is disabled
Could it be the case? that you're also using the camera at the same time...
-
@Pablo-J-Rogina
I've try to do this:Camera { id: camera viewfinder.resolution: "640x480" imageProcessing.whiteBalanceMode: CameraImageProcessing.WhiteBalanceFlash flash.mode: Camera.FlashTorch
and i create a function for force the flash on
function flash_start() { camera.unlock() camera.flash.mode = Camera.FlashOn camera.flash.mode = Camera.FlashTorch }
But nothing works.