I'm working on a project that includes a media player. All is going fine, I select the media to be played from a play list and send it to the player activity and press play. The audio plays just like it should. Now, when I leave that activity (with the audio still playing) I'm unable to get back to that same activity, clicking the same item from the playlist starts a new activity with the old media playing in the background still. How can bring back an old activity?
I don't get your question at all. However, look at the state diagram here:
http://developer.android.com/reference/android/media/MediaPlayer.html
And the other state diagram here:
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle
Combine the MediaPlayer states and the Activity states in order to fulfill your need.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.