Android onCreate or onStartCommand for starting service
onCreate() is called when the Service object is instantiated (ie: when the service is created). You should do things in this method that you need to do only once (ie: initialize some variables, etc.). onCreate() will only ever be called once per instantiated object. You only need to implement onCreate() if you actually want/need to … Read more