How Android Apps Switch On the Camera Flash: A Plain-English Explanation
A simple look at how a flashlight app turns on the LED next to your camera, and why a well-made app needs very little from your phone.
A flashlight app looks simple, and in a way it is. Here's what happens behind the scenes when you tap the button.
The LED
Beside your phone's camera lens is a small LED, the flash. Its normal job is to give a brief burst of light when you take a photo in the dark. A flashlight app uses the same LED, but keeps it switched on.
Torch mode
Android includes a feature often called torch mode. It lets an app turn the flash LED on and keep it on, without taking a photo. When you tap the button in a flashlight app, the app asks Android to switch the torch on, and Android does the rest. Tapping again asks it to switch off.
This is a small job. The app doesn't need to open the camera preview, take pictures or record anything.
Why this is light on the phone
- Little processing: a simple on/off instruction.
- No screen effort: the screen can be off while the torch is lit.
- Small app size: there's very little code to run.
- Low idle use: when you're not using it, the app does nothing.
What could interfere
| Situation | Why it might not work |
|---|---|
| The camera is in use | another app may be holding the camera |
| Battery saver is on | some phones limit the flash |
| The phone is too hot | some phones switch off the flash to protect the hardware |
| The phone has no flash | some devices lack a flash LED |
| A fault | the LED or its connection may be damaged |
Permissions
A flashlight only needs to control the torch. It has no need for your photos, contacts or location. An app that asks for more than it needs deserves a second look. See our article on flashlight permissions.
Devices without a flash
Some phones, tablets and cheaper devices have no camera flash. On these, a flashlight app can't produce light. Check that your device has a flash LED beside the camera.
The screen as a light
Some apps offer a white screen as a substitute. It gives dim, wide light but isn't as bright as the LED, and it uses more battery.
Simplicity is a virtue
The best flashlight apps do one thing: turn the light on quickly and reliably. That's the idea behind Night Torch: a one-tap toggle that's ready instantly.
Night Torch
A simple, reliable flashlight app for night-time use
More about Night Torch
Checking Your Car Engine and Tyres at Night
How to safely check oil, coolant, tyres and warning signs on your car after dark, with lighting tips and when to call for help instead.
Read article →Checking on a Sleeping Baby Without Waking Them
How to check on a sleeping baby at night using soft, indirect light, plus tips to keep night checks calm and safe.
Read article →Checking the Fuse Box During a Power Cut
How to tell whether a power cut is just your home or the whole area, and how to safely check your fuse box or consumer unit with a torch.
Read article →Fall Prevention at Night for Older Adults
Practical home changes and habits that reduce the risk of night-time falls for older adults, including lighting, footwear and medication awareness.
Read article →