I'm studying how to develop android app. I started with a very simple app with only one activity. Then I added a service to play background music; of course i used the method onPause(), onStop() onDestroy() to manage the service.
But now, that i have another activity, the background music stops when the new activity is opened (because the method onPause() is called).
I want to stop the background music only when user closes or destroys my entire app, not when user passes from an activity to another.
Probably i made a big mistake when i started building my app. Now i 'm trying to solve this problem.
I tried to use also bindService, but i still have the same problem.
How should i menage this issue?