+ 10

How to turn on my phone's torch with JavaScript?

I am modifying my torch app and I really want to turn on the phone's torch using JavaScript, I think it is possible, but unfortunately I don't really know the syntax, please help!!!

27th Dec 2019, 7:31 AM
Jaagrav
Jaagrav - avatar
6 ответов
+ 10
There is an awesome application on Google Play called DroidScript that lets you interact with Android by using JS. It has some good examples (Torch example too).
27th Dec 2019, 8:59 AM
🈂️Toma
🈂️Toma - avatar
+ 3
Do you mean, your phone's flash? (For future readers)
27th Dec 2019, 8:11 AM
SoundInfinity
SoundInfinity - avatar
+ 2
have droid script. it lets you interact with your android through programming. and not only js u can also use js, c or html
28th Dec 2019, 7:04 AM
Trap Brain
Trap Brain - avatar
- 6
i dont know about that. Maybe on swift
27th Dec 2019, 8:20 AM
Ginfio
Ginfio - avatar