Initial contact Service notes

Service is a small program that runs in the background, one is divided into two StarService () is another bindService (), this method can be called the Service and to return operation results and the like can not StarService

His life cycle onCreate, onStartCommand, onDestroy three, when we startService () when you first create Service calls back onCreate () method, then the callback onStartCommand () method

Creating Service manifests in time must be configured in

Guess you like

Origin www.cnblogs.com/hahabengbeng/p/11019912.html