I am developing a B4A audio streaming app that plays MP3 files from the Internet.
I want audio playback to continue after the user leaves the app, with a floating bubble (overlay) that stays above other apps and allows Play / Pause / Stop controls or reopening the app.
Requirements:
Continuous background audio playback.
Floating bubble visible over other apps.
Works on modern Android versions.
Control playback from the bubble.
What is the best approach in B4A?
Foreground Service
Overlay Window (SYSTEM_ALERT_WINDOW)
Chat Head / Floating Bubble
Does anyone have a complete B4A example that demonstrates:
(2017/07/01) Based on this wrapper, I also built some strange things on it, with different purposes. I am not working on most of them anymore, so I decided to share. This one is funny. Similar to the video but with added elements It combines several overlay elements and brings them into life...
www.b4x.com
it work in the past but now no (it even hang the mobile)
any help, please ?
Simple example of a foreground service that keeps the process running in the background. The current location is shown in the persistent notification. The app starts at boot and theoretically should run all the time. It also schedules itself to run with StartServiceAt. This can help in cases...
www.b4x.com
can I add playing button in the notification to run forever ?