Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote Service Vs. Local Service

Tags:

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 ).

  1. Please shows me what different between Local Service and Remote Service.
  2. What's the advantage/disadvantage of using Local Service.
  3. What's the advantage/disadvantage of using Remote Service.

Thanks & best regards Dai Son

like image 498
Nguyen Dai Son Avatar asked Jan 17 '11 04:01

Nguyen Dai Son


People also ask

What are the local and remote services differentiate them?

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 does remote service mean?

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.

What is remote service in Android?

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.

What is the use of remote 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.


1 Answers

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.

like image 172
Falmarri Avatar answered Sep 30 '22 02:09

Falmarri