• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

how to stop/kill an app after some time?

I'm listening to some music when I go to sleep. But after I've fallen asleep, the app's still running until I wake up and kill it. Which means it's running a few hours, draining battery life.
I've been searching google for an app that could auto kill an app after a designated time, but no luck.
I don't want to stop the sound, but the app itself.
I don't know if it's even possible?
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones