Is possible in Android remember in player time where it is stopped ? I need to play mp3 in player and when user stops, or app goes to pause, I need to remember current state so user can play again from same time when starts again that file. How to achieve this ?
Share
Call
getCurrentPosition()on theMediaPlayerwhen you wish to save off the position (e.g.,onPause()). Write that to a persistent store (database,SharedPreferences, or other sort of file). UseseekTo()to return to that position later on as needed.