摘要:
参考:http://blog.csdn.net/yyingwei/article/details/8509402http://www.cnblogs.com/ylligang/articles/2665181.html1. onStartCommand 中返回START_STICKYpublic int onStartCommand(Intent intent, int flags, int startId) {return START_STICKY;}2.onDestroy 中重新启动(settings 中stop service会调用service onDestroy方法)public v
阅读全文