34,333
edits
Changes
→The Anatomy of a Service
* '''onDestroy()''' – Called when the service is being destroyed.
* '''onHandleIntent()''' – Applies only to IntentService subclasses. This method is called to handle the processing for the service. It is executed in a separate thread from the main application.
<google>BUY_ANDROID</google>
Note that the IntentService class includes its own implementations of the onStartCommand() and onBind() callback methods so these do not need to be implemented in subclasses.