I just returned to B4A to recreate an app that I was only able to build in B4A before. But this Background/Foreground Activity vs Android 8+ issue has me nuts on this forum... I can't seem to get a straight answer. Can someone please lay this to rest for me? I just need to play a mediaplayer or exo stream from a background activity. Can someone post a sample of what that would look like nowadays?
Update: Starting from B4A v8.3 the starter service will never be killed unless the whole process is killed. This means that you can always assume in your code that the starter service is running.
It is done internally by changing the starter service context to the application context.
Thank you. I saw that same line and jumped to that same conclusion earlier. I just wasn't sure if it would be the best place to do it. I'll try it and make a follow up.