If music plays normally while an app is open but stops when the screen locks, the audio file itself may be perfectly fine. The failure is often in background playback, battery restrictions, streaming connectivity, or the app’s own playback design.
Android explicitly supports background media playback when an app implements it correctly. Android’s Media3 documentation describes keeping the player and media session in a service so playback can continue while the app is no longer in the foreground. That means a screen-off stop is not something every music app should automatically do.
1. Test whether it happens in one app or every audio app
Play a known-good track in a second reputable player, lock the screen and wait. If only one app stops, troubleshoot that app first. If several unrelated apps stop in the same way, look at Android battery, background and device-level settings.
2. Check the app’s battery and background-use setting
Open the app’s system settings and review its battery usage. On current Pixel software, Google exposes an Allow background usage control with an optimized mode. Other manufacturers use different labels. Avoid disabling optimization for every app; if a specific music player is being stopped incorrectly, change only what you need and watch the battery impact.
3. Turn Battery Saver off for one controlled test
Google notes that Battery Saver can limit or turn off background activity and can delay some apps and network activity. Temporarily turn it off, start playback and lock the screen again. If the problem disappears, you have identified a power-management factor. You do not need to leave Battery Saver disabled all day; adjust the affected app or your usage instead.
4. Make sure the app actually supports background playback
Some apps intentionally pause when their activity leaves the foreground, especially browser-based players, short-form video apps and services with account or plan restrictions. Check the app’s official documentation. If a player is designed for local music, screen-off playback should normally be part of the expected experience.
5. Check the media controls and playback notification
Lock the screen and inspect Android’s media controls. If the session disappears immediately, force-closing the app, an app bug or background restrictions are more plausible than an audio-codec problem. If the controls remain but playback pauses, resume from the media control and note whether it stops again at the same point.
6. Separate local-file problems from streaming problems
Test one downloaded local track and one streamed track. If local audio continues with the screen off but streaming stops, investigate network access, data-saving behavior and the streaming service rather than the audio engine itself. If downloaded music is missing entirely, use our music files not showing on Android checklist.
7. Rule out a Bluetooth route change
If this happens only with earbuds, a car or a speaker, repeat the test through the phone speaker. A Bluetooth device can pause, disconnect or switch control state independently of the app. If the accessory actually disconnects, follow our Bluetooth keeps disconnecting on Android guide after it goes live.
8. Update the player and restart the phone
Install the latest stable version of the player and any pending Android system update, then restart the phone. If the problem began immediately after one specific app update, check the developer’s release notes or support channel rather than repeatedly clearing system settings.
9. Reinstall or clear the app only after you protect playlists and downloads
Clearing storage or reinstalling can erase local app databases, downloaded media, sign-ins or playlists depending on the app. Back up anything important first. Use this step only after the simpler tests establish that the problem is isolated to one player.
A useful comparison test for local music
If you are troubleshooting local audio files, you can use Lynka or another trusted Android music player as a comparison player. The goal is not to assume one app is the solution—it is to learn whether the same file and screen-off condition fail across multiple players.
Official Android sources
- Android Developers: Background playback with MediaSessionService
- Google: Get the most life from your Android device’s battery
- Google Pixel Help: Adaptive Battery and battery optimization
Last reviewed: September 2026. Battery-menu names vary by manufacturer and Android version.

Start the conversation
Corrections, useful experiences and focused questions are welcome. Keep discussion respectful and on topic.