摘要:
Service 是Android四大组件之一,可以在不显示界面的情况下在后台运行。还有一个作用是通过AIDL来实现进程间通信。Service的启动方式Service的启动方式有两种,startService()与bindService()startService():onCreate->onStartCommand(旧版本为onStart),结束通过stopService(),回调onDestroy如果调用startService()方法前服务已经被创建,多次调用startService()方法并不会导致多次创建服务,但会导致多次调用onStartCommand()方法bindServi 阅读全文