简体   繁体   中英

Play audio background even the application exit

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

You can use service to do that. Follow the link

只需使用在通知面板中显示音乐播放器通知的前台服务播放歌曲即可。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM