Android Question play music without stopping


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
SetActivityAttribute (Main, android:excludeFromRecents, "true")