I have a list of music titles in a ListView.
I can click on each item to play music through MediaPlayer in the service.
Now I want to implement 2 Features:
- Music ProgressBar showing the current position in the song
- The service will continue playing when Song ends with the next song in the list.
So how can I update the user interface from the background service? (I know that there are several solutions on Stackoverflow, but it seems to me that I'm a bit overloaded to send a broadcast every second from the ie Service). Should I use binding? What is the advantage of binding? Now I just start the service using Intent (startService (intent)), which contains the path of the song.
What about the second question? How can i do this?
source
share