What is the difference between Service and Thread?

Answer

Service is like an Activity but has no interface.  A Thread is a concurrent unit of execution.
A Service is not a separate process. It works in background until the service or someone else explicitly stop it. By default, all components of the same application run in the same process and thread (called the “main” thread).
Service is not killed when an application is killed.  Thread is killed when an Application is killed.
It expose some of its functionality to other applications by calling Context.bindService(). GOOGLE has brought in Handlers and loopers into android threads.

 

All android-5.0-lollipop Questions

Ask your interview questions on android-5-0-lollipop

Write Your comment or Questions if you want the answers on android-5-0-lollipop from android-5-0-lollipop Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---