I am using a media player.
I have the option for starting ,stopping and pausing the player. The problem I have is that I cannot find the option to resume the song from the point that it previously was paused..
Any help provide would be really helpful.
When using seekTo I found it often starts playing with the very start of the track then carries on playing from the point of where seekTo was set.
What worked for me was muted the volume and then crank it back up once the currentProgress matches the current seek (stored in global).
In the accepted answer, the correct order is:
Make two buttons for play and pause. And use this code. It worked for me.
Thank you for your attention but I've got it myself
for pausing the Mediaplayer I used:
and for resuming the player from the position where it stopped lately is done by:
in case you use two Buttons one for play and one for pause then the below code is working and tried:
I think you should go through the documentation found here: http://developer.android.com/reference/android/media/MediaPlayer.html
Some quotes from the docs:
States explained:
And quote from the start() method of the MediaPlayer
So to answer your question directly, to resume the paused MediaPlayer instance from the point where it was paused use start() again on that instance.