Music Player Activity
I created a song player that has a basic functions like play, pause, next
etc. When I click play button, the current song Index will play. Now,
while the song is playing and I press the back button go to my home
activity using intent, the song is still playing. But when I click on the
player button to go to the player, the state of my play/pause button is on
play and when I click the play button, the default index of my song
(currentSongIndex(1)) index will play and the last song I played is still
playing. So therefore, There are 2 song are playing at the same time. How
do I solve this? Any help will be very much appreciated.
No comments:
Post a Comment