服务(Service) 是一种在后台运行,没有界面的组件,由其他组件调用开始.Android 中的服务和 Windows 中的服务是类似的东西,它运行于系统中不容易被用户发觉,可以使用它开发如监控之类的程序. 服务(Service)的实现 1. 定义类继承 Service,重写 onCreate(). onStart(Intent intent, int startId). onBind(Intent intent). onUnbind(Intent intent).onDestroy() 中需…