Added "Intent Services" (#30876)

Added more information in services about intent services.
This commit is contained in:
Mahesh Jaganiya
2019-05-11 08:42:20 +05:30
committed by Christopher McCormack
parent d2901ac0ae
commit 3669ed4238

View File

@ -162,6 +162,7 @@ There are three kinds of services:
- _Foreground_ services: they are strictly related to the user's interaction (for example music playback), so it's harder for the system to kill them.
- _Background_ services: they are not directly related to the user's activities, so they can be killed if more RAM is needed.
- _Bound_ services: offers a client-server interface that allows components to interact with the service, send requests, receive results, and even do so across processes with interprocess communication (IPC).
- _Intent_ services: An IntentService is meant to handle individual autonomous calls. Unlike a service, which can concurrently handle multiple calls, an IntentService is more like a work queue processor work is queued up and an IntentService processes each job one at a time on a single worker thread. Typically, an IntentService is not bound to an Activity or a Fragment.
#### [Services Lifecycle](https://developer.android.com/guide/components/services#Lifecycle)
![Services Lifecycle](https://developer.android.com/images/service_lifecycle.png)