How to stopService when App is fired
I got a problem puzzling me a long time
Activity A in Application APP
In onDestroy(), I need to call function B() to release some resource, but when I press Home and remove APP , onDestroy() can not be callback. What I should do? Do not call B() in onPause() or onStop()
PS: I am making a Android MusicPlayer, I need to stopService() when App is killed, help!
链接地址: http://www.djcxy.com/p/90810.html上一篇: 当从堆栈恢复重新创建的活动时,不会调用onStart()方法
下一篇: 如何在App启动时停止服务