I attach a modified form of my project. It runs from the Assets file so it will run on any device - it doesn't have to scan for mp3 files. I have disabled the id3 tag reader so the the app looks a bit bare but it still illustrates my problem.
Question : How should I stop the player from within the app? I have left in one of my attempts :
Public Sub stop
Service.StopForeground(id)
StopService(Me)
End Sub
Rather than stop the Player service this seems to create yet another instance, which is quite bizarre. This app is just for my own education, so not important, but any guidance would be appreciated.