Android Question play music without stopping

Abdou1283

Member
Licensed User
Hi, I am working on developing an application to listen to the radio and I do not want to stop the music after I leave the application permanently only when terminated by the user using the notification, for that reason i create a service to play music, but when i swipe the app from the recent apps list, the service is destroyed and the music is stopped, what should i do???
 

Semen Matusovskiy

Well-Known Member
Licensed User
You can remove an application from recent list by adding into manifest
B4X:
SetActivityAttribute (Main, android:excludeFromRecents, "true")
 
Top