I am trying to play background music in simple game on Android using Services
.
Using the link: Android Life Cycles
But this code doesn't work properly, onResumeActivity, onPauseActivity
are called but the music keep running in background even when the onPauseActivity
method is called.
The music keeps on playing while the app is in background.
is there any other way to play background music in an Android App/Game??