Home › Record video with the screen off

How to record video with the screen off on Android

Android won't record video with the display off on its own. Here's exactly why, and how a background video recorder makes it work — plus the settings that stop Android from killing your recording. Last updated: November 2026.

The short answer

You cannot record video with the screen off using Android's built-in camera app — it pauses the camera when the app loses focus. To do it you need a background video recorder that runs the camera from a foreground service, which is allowed to keep the hardware active while the screen is off or another app is open. XSCamera does exactly this, free and fully offline.

Why Android blocks it by default

For privacy and battery reasons, Android stops most apps from using the camera once they're no longer in the foreground. Since Android 9 the system actively blocks camera access from the background for ordinary apps. The sanctioned way around this is a camera foreground service: a visible, notification-backed service that tells the system the app is doing ongoing work the user started. That's why every legitimate background recorder shows a persistent notification while recording — and why XSCamera keeps Android's camera indicator on. It's not a bug; it's the compliant, honest way to record in the background.

Step by step with XSCamera

Install & grant permissions

Get XSCamera on Google Play. Allow the camera, and the microphone too if you want sound.

Choose camera, mode & quality

Pick front or back, choose a recording mode (Mini preview, Icon, or No preview), and set quality from SD up to 4K depending on how long you need to record.

Allow background & disable battery optimization

When prompted, let XSCamera run in the background and exclude it from battery optimization. This is the single most important step — it's what stops the system from ending your recording.

Record, then lock your phone

Tap start, turn the screen off or switch apps, and recording continues. Stop any time from the notification. For recurring capture, use a Scheduler; to start without touching the phone, enable whistle/clap start.

Settings that keep it recording

  • Disable battery optimization for XSCamera (Settings → Apps → XSCamera → Battery → Unrestricted). Aggressive power management on some brands (Xiaomi, Oppo, Samsung) is the #1 cause of recordings stopping early.
  • Allow background activity / autostart where your phone offers it.
  • Lower the quality or mute audio for much longer recordings and smaller files.
  • Use "No preview" mode so the screen stays free for other apps while recording.
Scheduled recordings can be interrupted on some devices when the app is in the background, because of manufacturer battery limits and Android version differences. Disabling battery optimization and keeping the phone charged for long sessions makes them reliable.

Battery & storage tips

Continuous video is demanding. For long sessions, keep the phone on a charger, record at FHD or lower, and free up storage first — 4K uses several GB per hour, while HD is far lighter. XSCamera stores everything locally, so you're limited only by your free space, not a cloud quota.

Recording video you're part of, on your own property, or with the other person's consent is legal in most places. Secretly recording other people where they have a reasonable expectation of privacy — bathrooms, bedrooms, changing rooms — is illegal in many jurisdictions, and audio recording has its own consent rules. XSCamera is built for lawful, personal use only and does not support covert surveillance of individuals. See our consent & law guide before you record anyone else.

FAQ

Can the stock camera app record with the screen off?

No. It stops when it loses focus. You need a dedicated background recorder with a camera foreground service.

Does screen-off recording drain the battery?

Yes, continuous video uses significant power. Keep the phone charged for long sessions and lower the quality to extend recording time.

Can I hide the recording notification?

No — and no compliant app can. Android requires the camera indicator and XSCamera keeps a recording notification, by design.

Record in the background, free

XSCamera — private, offline, no account.

Download on Google Play