WHAT IS SERVICES IN ANDROID ?
A service is an application component which can be used to handle long running background tasks without the interaction of user. services keeps on running even after user switch to different activity or different application,
TYPES OF SERVICES
In android there are 3 types of services :
Foreground services
Background services
Bind services
Foreground services
It is a service which can be used to run log running services in the front of user so that user can see the progress of on going task
Example: Downloading something from internet and showing the progress of download to user
Background services
It is a service which can be used to run long running task in background without the interaction of user.
Example:
Syncing user information with server, downloading large file in background
Bound services
It provides client-server interface to our application for doing long running tasks in background it binds current state of activity with the on going call so that activity will always remains in touch with service
Example : doing server based long running task in background with realtime sync
LIFE-CYCLE OF ANDROID SERVICES
So now we are familiar with android services in next post we will see the entire integration of android services in android application.
IMPORTANT LINKS
How Codersarts help in Android app development?
Codersarts is a top rated website for Android App Assignment Help, Project Help, Homework Help and Mentorship. Our dedicated team of Android assignment experts will help and guide you throughout your android app development journey.
Feel free to contact us if you need any assistance along your entire Android journey. We have a team of experienced developers who can help you out.
Comments