I am writing an app in which i am allowing user to view images and select one of them to set an WALLPAPER, and in this i also want to play an mp3 when user starts an App and sto
simply put your player.start() method in onResume() method and call player.stop ()
in onPause() method.Take a look at this
Difference between onStart() and onResume()