What is the main difference between Intent service and service?

What is the main difference between Intent service and service?
Answer
Difference Between Service and IntentService

Service

Intent Service

Service will always run on the
main thread.

intent service always runs on the worker thread triggered from the
main thread.

There is a chance
of blocking the
main thread.

tasks will be performed on a queue basis i.e, first come first serve basis.
 

Tìm kiếm

Back
Top