当我打电话this.startService(new Intent(this, Some_Service.class));
我知道onCreate()
被调用,其次是onStartCommand()
。服务在onStartCommand()完成后会自动停止吗?
bur如果onStartCommand()
中的代码已完成,会发生什么情况?
Service
自动拨打onDestroy()
自行停止吗?
或者我必须拨打this.stopService(new Intent(this, Some_Service.class));
来实现吗?