I am developing an entertainment app in android. I want to play background music, and I want to use service for that. App have 3 activities and music must be played across all activities. Also, when activity is paused, music must PAUSE and stopped when destroyed. Can anyone tell me how to do this ? any links or examples ?
Thank you.
i had problem to run it and i make some changes to run it with mp3 source. here is
BackfrounSoundService.java
file. consider that my mp3 file is in my sdcard in my phone .