今天学习的是Severice生命周期和启动方式
Severice的创建 继承Service

每一个都在AndroidManifest中注册

使用startService进行启动
在MainActive中绑定
public void start(View view) {
Intent intent = new Intent(this,MyService.class);
startService(intent);
}

里面有onCreate创建方法
onStartCommand方法
onDestroy方法
onBind方法

解绑方法

绑定方法

