Changes

Jump to: navigation, search

Understanding Android Started and Bound Services

9 bytes removed, 09:19, 28 January 2016
no edit summary
<htmlet>androidstudio_a6androidstudio</htmlet>
* '''START_STICKY''' – Indicates that the service should be restarted as soon as possible after it has been destroyed if the destruction occurred after the onStartCommand() method returned. In the event that no pending intents are waiting to be delivered, the onStartCommand() callback method is called with a NULL intent value. The intent being processed at the time that the service was destroyed is discarded.
* '''START_REDELIVER_INTENT''' – Indicates that, if the service was destroyed after returning from the onStartCommand() callback method, the service should be restarted with the current intent redelivered to the onStartCommand() method followed by any pending intents.
<htmlet>androidstudio_a6androidstudio</htmlet>
== Declaring a Service in the Manifest File ==
<htmlet>androidstudio_a6androidstudio</htmlet>

Navigation menu