I am building a music player in android for which I am using bound services to create mediaplayer and do all the background operations like playing media and pause etc like this.
All the UI components in mediaplayer are implemented in activity and I need to communicate events like mediaplayer is ready, media is playing, paused etc from service to activity to make changes in UI accordingly. What would be best way to do that?
Broadcasts from service to activity for various states is one way to implement it.