If android restarts a Service is onCreate called again?
问题 From my little android knowledge I understand that android OS can kill my service under extreme memory conditions. I have created a service that returns START_STICKY . The service is meant to run in background. If android is about to kill my service, will it call onDestroy ? And when it restarts it would it call onCreate ? 回答1: See here, the dev guide. http://developer.android.com/reference/android/app/Service.html#ProcessLifecycle onCreate() is only called when the process starts, which can