Keep Apps Running in Background on Samsung: Lock This App
In this article
To keep an app running in the background on a Samsung phone, you use the built-in “Lock this app” option in the Recents screen. This prevents Samsung’s battery optimization from killing the app when you switch away. You’ll need a Samsung phone running One UI (most models from 2019 onward) and the app you want to keep alive already installed and opened at least once.
What You'll Need
- A Samsung Galaxy phone or tablet with One UI (check in Settings > About Phone > Software Information > One UI version).
- The app you want to keep running in the background — installed and opened once so it appears in the Recents list.
- No root or special permissions required; this is a standard Samsung feature.
Step-by-Step
- Open the app you want to keep running in the background. It doesn’t matter what screen you’re on inside the app — just have it open.
- Open the Recents screen by tapping the square button (bottom-right on most Samsung phones) or swiping up from the bottom and holding if you use gesture navigation. You’ll see a carousel of your recently used apps.
- Find the app in the Recents list. Swipe horizontally through the cards until you see the app you want to lock.
- Tap the app icon at the top of the app’s preview card. A small menu will pop up with several options.
- Tap “Lock this app.” The app’s card will now show a small lock icon at the top. This tells the system not to close that app when you leave it or when battery saving kicks in.
- To unlock it later, repeat steps 1–4 and tap “Unlock.” The lock icon disappears, and the app returns to normal background behavior.
That’s it. The app will now stay in memory even when you switch to other apps or leave your phone idle. Note that the exact wording of the menu option may differ slightly depending on your One UI version — older versions might say “Keep open” instead of “Lock this app.”
Common Mistakes
- Locking the wrong app: Make sure you tap the icon on the correct preview card. The lock applies only to that specific app instance.
- Forgetting to reopen the app after a restart: Locking does not make the app start automatically after you reboot your phone. You’ll need to open it once after every restart, then re-lock it if the lock was cleared.
- Confusing “Lock this app” with “Pin this app”: Pinning locks the screen to that app (for kiosk mode or handing your phone to someone). That’s a different feature — don’t tap “Pin” unless you want that behavior.
- Expecting it to work across all battery modes: Even with the lock, extreme power saving mode may still close background apps. The lock works for normal and medium power saving, but not for maximum power saving.
Tips
- Combine with “Unrestricted” battery setting: For apps that need to run constantly (like music players or messaging), also go to Settings > Apps > [App Name] > Battery > “Unrestricted.” This tells the system to never put that app to sleep.
- Use “Sleeping apps” list to avoid over-locking: Samsung’s device care has a list of apps that are put to sleep automatically. Check Settings > Battery and device care > Battery > Background usage limits > Sleeping apps. If your app is there, remove it.
- Lock multiple apps: You can lock as many apps as you want, but each one uses RAM. Locking too many can slow down your phone.
- For navigation apps (like Google Maps): Lock the app and also set its battery to “Unrestricted” to avoid it being killed mid-route.
Troubleshooting
If the app still closes in the background after locking, try these in order:
- Restart your phone. This clears temporary glitches and re-applies the lock settings.
- Check if the lock is still active: Open Recents and see if the lock icon is still on the app’s card. Sometimes a system update or a force-stop can remove it.
- Set battery to “Unrestricted”: As mentioned above, go to Settings > Apps > [App Name] > Battery > “Unrestricted.” This is the most common fix for apps that still get killed.
- Disable “Put unused apps to sleep”: In Settings > Battery and device care > Battery > Background usage limits, turn off “Put unused apps to sleep” if you want all apps to stay alive (not just the locked one).
- Check for app-specific battery settings: Some apps (like YouTube or Spotify) have their own background playback settings. Make sure those are enabled inside the app.
- If nothing works, uninstall and reinstall the app. This resets any corrupted cache or settings. You won’t lose app data unless you clear the app’s data in Settings > Apps > [App Name] > Storage > Clear data — so avoid that unless you’re okay with losing saved data.
Frequently Asked Questions
Does “Lock this app” work on all Samsung phones?
Yes, it’s available on all Samsung phones running One UI (Android 9 and later). Older Samsung models with Android 8 or earlier may not have this exact option, but they have a similar “Keep open” toggle in the Recents screen.
Will locking an app drain my battery faster?
Yes, slightly. The app stays in memory and may run background processes. That’s the trade-off. Lock only the apps you truly need to keep alive.
Does locking an app prevent it from being killed when I swipe it away?
No. If you swipe the app card away in Recents, it will close even if it’s locked. The lock only prevents the system from closing it automatically — it doesn’t stop you from manually closing it.
Can I lock an app that I haven’t opened yet?
No. The app must appear in your Recents list, which only happens after you open it at least once. After that, you can lock it even if you haven’t used it recently (as long as it’s still in the Recents list).
Will the lock survive a phone restart?
Usually yes, but not always. Some Samsung updates or battery optimizations may clear the lock after a reboot. It’s safe to assume you may need to re-lock after a restart.
Is there a way to lock apps in bulk?
No. Samsung doesn’t offer a bulk lock option. You have to lock each app individually from the Recents screen.