Concepts of Android support services. The service runs components in the background without a user interface. You can think of these components as Windows or UNIX services. Similar to these services, Android services are always available, but you do not need to perform certain operations.
Android supports two types of services: local services and remote services. The local service cannot run other applications on the device.ProgramAccess. Generally, these service types only support applications that host the service. For remote services, in addition to accessing applications that carry services, you can also access them from other applications. The remote service uses aidl (Android Interface Definition Language) to define itself to the client.
There are two reasons for the concept of Android Support Service. First, simplify the implementation of background tasks. This kind of service is also a local service. Second, Process Communication is executed between applications running on the same device. This kind of service is also a remote service. Important differences between local services and remote services. Specifically, if the service is only used by components in the same process (to run background tasks), the client must call context. startservice () to start the service. This type of service is a local service because it is generally used to run the background tasks of the application that carries the service. If the Service supports the onbind () method, it is a remote service and can communicate between processes.
(Context. bindservice () process call. The remote service is also called the aidl support service because the client uses aidl to communicate with the service.
Local Service implementation: http://byandby.iteye.com/blog/1026110
Aidl service implementation: http://byandby.iteye.com/blog/1026193
Aidl callback method: http://linconz.net/archives/229.html