It's simple example, but cann't understand. Music player. I have Activity with UI and functions (play, pause, stop ....). Me need do service which playing music in background. How service and activity can communicate. For example:
- in Activity we select song
- id song go to service with intent (with help putExtra)
- service -> play (song)
- we close activity and service work
- through time (song change) we open activity and he shows new current song.
How service "say" activity about changes? And how activity again "say" service about changes? (service we start so putExtra not suitable).
If have code examples show plz. Sorry for bad English.