What is the difference between activity and service?

What is the difference between activity and service?
Answer
An Activity and Service are the basic building blocks for an Android app. Usually, the Activity handles the User Interface (UI) and interactions with the user, while the service handles the tasks based on the user input.
 

Tìm kiếm

Back
Top