How to make when you minimize the application the status of the button remained the same?

Hello, I have a fragment where there are 2 buttons, 1 toggle - play, pause, another stop, I press play the music plays and the pause icon appears, I minimize an app, I go back and I have the button pause and stop, how to make the status of left button?33f5e5842e9544ad8a017f532fb4e236.png
July 2nd 19 at 18:20
1 answer
July 2nd 19 at 18:22
Obviously it is necessary to save its state, you're talking about life cycle activities in the course?

Find more questions by tags JavaAndroid