This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
android-labs-s14:class-07 [2014/02/24 03:21] prakhar created |
android-labs-s14:class-07 [2014/02/24 14:11] (current) prakhar |
||
---|---|---|---|
Line 14: | Line 14: | ||
===== Service ===== | ===== Service ===== | ||
- | A ''Service'' is an application component in Android that runs in the background without needing to interact with the user. For example, a service might handle network transactions, play music or perform file I/O, all from the background. Another application component can start a service and it will continue to run in the background even if the user switches to another application. Additionally, a component can bind to a service to interact with it and even perform interprocess communication (IPC). | + | * A ''Service'' is an application component that runs in the background without needing to interact with the user. |
+ | * For example, a service might handle network transactions, play music or perform file I/O, all from the background. | ||
+ | * Another application component (for e.g., an ''Activity'') can start a service and it will continue to run in the background even if the user switches to another application. | ||
+ | * Additionally, a component can bind to a service to interact with it and even perform interprocess communication (IPC). | ||
A service can have two forms- | A service can have two forms- |