终止服务的方法

this.stopSelf();

原文地址:https://www.cnblogs.com/turtlegood/p/3086963.html