I am new to Android and I want to create a simple mp3 player. Now, as I understand it, a good way to do this is to have a service that will be responsible for the MediaPlayer class, and activity, which will be some kind of user interface, as well as send game instructions to the service (play, stop, then, etc.). d.).
My question is, what approach should I use to communicate with the service activity? I tried to figure out these examples , but I don’t see how I can implement the pause, next, previous, etc. functions. Player.
Thus, I am only interested in the concept and, possibly, useful links that will help me a little. Thank!
source
share