本帖最后由 u011950189 于 2014-04-13 16:28:12 编辑

解决方案 »

  1.   

    只有你的service绑定了客户端后,service被destroy了才调用onDestroy方法,你可以去看下android api中service的生命周期,里面这样说的:
    Although a started service is stopped by a call to either stopSelf() or stopService(), there is not a respective callback for the service (there's no onStop() callback). So, unless the service is bound to a client, the system destroys it when the service is stopped—onDestroy() is the only callback received.