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
Charging Your Phone During a Power Cut: Power Banks, Cars and More
Practical ways to keep a phone charged when the mains is off, and how to stretch the battery you have.
Read article →Dark Mode and Night Settings: Comfortable Screens After Dark
How dark mode, brightness controls and night-light settings can make your phone easier on the eyes at night, and what they can and can't do.
Read article →Looking After Your Phone Battery: Habits That Make It Last
Simple, evidence-based habits to keep a phone battery healthy for longer, without myths.
Read article →Power Bank Safety: Choosing and Storing One for Emergencies
What to look for when buying a power bank, how to use and store it safely, and how it supports your phone torch.
Read article →