I am trying to develop an android app. So I would like to know how to make the app keep running when I press the back button or home button or lock the screen(just like a music player app). Currently when I press the back button or home button or lock the screen , the app pauses the activity and resumes when I open the app again. I want the app to keep running in the background until I stop it manually from the app(just like a music player app).
Asked
Active
Viewed 649 times
1
-
Possible duplicate of [Disable back button in android](https://stackoverflow.com/questions/4779954/disable-back-button-in-android) – Gauthier Sep 13 '17 at 07:44
-
Possible duplicate of [keep application running in background](https://stackoverflow.com/questions/10494222/keep-application-running-in-background) – Kevin Krumwiede Sep 13 '17 at 07:45
-
Possible duplicate of [Android background music service](https://stackoverflow.com/questions/8209858/android-background-music-service) – AskNilesh Sep 13 '17 at 07:46
-
using background service – Vishal Bhut Sep 13 '17 at 09:21