10-06 13:32:59.317 9479-9708/? D/resmon: Memory occupied too high: com.vvvdj.player(130mb) killed
10-06 13:32:59.478 905-1158/? I/WindowState: WIN DEATH: Window{2d5ee003 u0 com.vvvdj.player/com.vvvdj.player.ui.activity.PlayingActivity}
10-06 13:32:59.484 905-1058/? W/InputDispatcher: channel '3b441f2b com.vvvdj.player/com.vvvdj.player.ui.activity.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
10-06 13:32:59.484 905-1058/? E/InputDispatcher: channel '3b441f2b com.vvvdj.player/com.vvvdj.player.ui.activity.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
10-06 13:32:59.495 905-2031/? I/WindowState: WIN DEATH: Window{3b441f2b u0 com.vvvdj.player/com.vvvdj.player.ui.activity.MainActivity}
10-06 13:32:59.495 905-2031/? W/InputDispatcher: Attempted to unregister already unregistered input channel '3b441f2b com.vvvdj.player/com.vvvdj.player.ui.activity.MainActivity (server)'
10-06 13:32:59.538 905-2000/? I/ActivityManager: Process com.vvvdj.player (pid 9779) has died
10-06 13:32:59.539 905-2000/? D/ActivityManager: SVC-handleAppDiedLocked: app = ProcessRecord{11dc2ae7 9779:com.vvvdj.player/u0a113}, app.pid = 9779
10-06 13:32:59.540 905-2000/? W/ActivityManager: Service crashed 0 times, stopping: ServiceRecord{2a95ccb3 u0 com.vvvdj.player/.service.DownloadService}this is not core appcom.vvvdj.player
10-06 13:32:59.540 905-2000/? W/ActivityManager: Service crashed 0 times, stopping: ServiceRecord{18f84085 u0 com.vvvdj.player/.service.LockScreenService}this is not core appcom.vvvdj.player
10-06 13:32:59.540 905-2000/? W/ActivityManager: Service crashed 0 times, stopping: ServiceRecord{b98e270 u0 com.vvvdj.player/.service.PlayerService}this is not core appcom.vvvdj.player
以上是日志, 情況是這樣的,我做的是一個音樂播放的APP, 開啟PlayerService這個服務播放,現在遇到了當後台播放,然後用戶去操作了一段時間的QQ,游戲,空間之內的(比如操作個幾十秒),APP就會導致播放停止,然後應用重啟,也不是崩潰,但確實重啟了,這問題搞了兩天頭都炸了,各種百度谷歌也還是沒解決,遇到過或者有建議都可以說下
樓主,你好,你使用的Service是在下載網絡上的音樂嗎?那幾十秒掛了正常,不能有網絡請求的。建議你使用IntentService
這個問題和你一樣:http://stackoverflow.com/questions/7316680/process-has-died
這個解決方案你可以看下:http://stackoverflow.com/questions/14747780/android-process-produces-logcat-has-died-message-very-often
望采納。