由网友(久绊)分享简介:我要创建应用程序,它可以播放流媒体音乐。当我preSS回家时,我的应用程序可以在后台运行,但是当我打开使用更多的内存,我的应用程序将停止和Android系统的杀了一个应用程序。任何人有另一种想法,在后台运行,我的音乐播放器应用程序吗? I want to create application that can pla...
我要创建应用程序,它可以播放流媒体音乐。当我preSS回家时,我的应用程序可以在后台运行,但是当我打开使用更多的内存,我的应用程序将停止和Android系统的杀了一个应用程序。任何人有另一种想法,在后台运行,我的音乐播放器应用程序吗?
I want to create application that can play a streaming music . When I press home my app can running in background but when I open another application that use more memory my app will stop and killed by android system . Anyone have another idea to run my music player app in background?
谢谢
推荐答案
您必须实现一个前台服务。
You have to implement a foreground service.
http://developer.android.com/guide/topics/fundamentals/services.html#Foreground
相关推荐
最新文章