I wonder if have any way to play a song and change to another activity and the music continues, but if you put the application in the background pause the music
Asked
Active
Viewed 61 times
2 Answers
0
Make it simple !
Just try to start your MediaPlayer through a Service. Heres a small example how to do it.
After you got this you can pause your Song through the Service maybe in the onDestroy method of your Activity.
Hopes this helps !
Ahmet Kazaman
- 769
- 14
- 37