Dear All, I am a newbiew to Android. I had read a lot of articles about Android Service but I am not clearly understanding what defferent between Local Service and Remote Service (except for "Local Service run in the same process as the lunching activity; remote services run in their own process" - The Busy Coder's Guide to Android Development - Mark L. Murphy ).
Thanks & best regards Dai Son
The difference between remote service and local service is: Local service runs in the same process and remote service runs in different process and may be in different application.
What is a Remote Service? A remote service is a process that resides outside of the application server and provides a service to the application. An example of a remote service is a web service, message queue, or caching server.
These types of services are referred to as remote services or out-of-process services. The code for these services will be contained in the same APK as the main application; however, when the service is started Android will create a new process for just that service.
Remote service in the standard context refers to a technician using software/hardware to access a client's devices offsite, in order to provide maintenance and support. These services could include installing updates, security patches or troubleshooting other issues.
Your description is exactly the difference between a local and remote service. There's nothing more to say. You will almost never want to use a remote service.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With