This question has already been answered:
I am writing an application that interacts with the flash of the phone. Tell me, what code should I use to start the camera flash (not including the camera itself) for a certain time in milliseconds?
This question has already been answered:
I am writing an application that interacts with the flash of the phone. Tell me, what code should I use to start the camera flash (not including the camera itself) for a certain time in milliseconds?
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
here in this question, on this resource, there is a complete answer to your question: how to add a flashlight to my application