I have a mediaplayer object inside an activity that plays from mp3 files situated in the res/raw folder. The
MediaPlayer.create(Context context, int resid)
method is used to create and return a mediaPlayer object to play this track.
What I have noticed is that when the activity is obscured by another activity and hence the "onStop()" method is called , the music continues to play. Can anyone explain why this occurs? I though that onStop would essentially freeze any actions taking place by objects associated with the activity, except for services etc