android - How to stopService when App is fired -


i got problem puzzling me long time

activity a in application app

in ondestroy(), need call function b() release resource, when press home , remove app, ondestroy() can not callback. should do? not call b() in onpause() or onstop()

ps: making android musicplayer, need stopservice() when app killed, help!


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -