I use the "notification with actions" for my radio player. Only I do not know how to use AddButtonAction to play or pause the player. I know the command that allows to play or pause the player because I use the ExoPlayer library
B4X:
player1.Play
player1.Pause
But I do not know what to call them in Erel's example. Thanks for your help.
When using the actions and you click on one of the actions the service MyService is started and it is logging the ACTION. It is up to you to call a method which stop play or whatever you want to do with the action.
When using the actions and you click on one of the actions the service MyService is started and it is logging the ACTION. It is up to you to call a method which stop play or whatever you want to do with the action.
Yes I added a service but what I do not understand is how to call the playback and pause commands in this service. Sorry I'm a beginner in programming and on B4A that I find really top in the process ;-)