It still does not work. I am using Mediaplayer and when the phone is closed it still stops. I realy need some more help Brian.
Yes - I am using MediaPlayer, and it is in a service. I would like to give you some better help, but I am afraid that you have picked a day when I have absolutely no free time. I don't think that I can help you by simply sending you my app - you would not be able to see the wood for the trees, as we say, and there are some dependencies that I could not include so you could not run it.
All I can quickly say is that my app is activity-based (not B4XPages) running with SDK level 33; the Mediaplayer is in a service and that service is started by the Main activity; there are no additional manifest entries in this regard; and I do not remember running into any special requirements when coding it up. Sorry that I cannot be more helpful.