0

I'am currently working a mobile application for radio streaming. The problem is when I exit the application the audio stops playing. any idea about this? I really need a help. thank you

Lev El
  • 1
  • Possible duplicate of [Play Background Sound in android applications](http://stackoverflow.com/questions/21043059/play-background-sound-in-android-applications) – zsmb13 Mar 16 '17 at 07:24

3 Answers3

0

You can use service to do that. Follow the link

Bera
  • 145
  • 1
  • 2
  • 11
0

Just play the song using foreground service showing music player notification in the notification panel.

taman neupane
  • 938
  • 9
  • 18
0

You have to create a Service and run it on the foreground. Here is the link to a comprehensive implementation.

Nouman Ghaffar
  • 3,780
  • 1
  • 29
  • 37