https://codedocu.com/Google/Android/j...
This Android app creates a Toggle button that turns the light on the Android smartphone ON and OFF.
In addition, you can switch to Pulse Strobo, where the HIGH pulse and LOW pulses are displayed as flashes in the mobile phone camera
with Java Code in Android