What is a "Service"
According to google it is - A facility for the application to tell the system
about something it wants to be doing in the background (even when the user is not directly interacting with the application).
It simply means its a background process which runs continuously even when you are not using an app.You may have noticed in your Setting > Apps> Running, that there are some app services running for hours .
For example take whatsapp, Do you know why you get message notifications even when your whatsapp is closed (cleared from recent app). It is because a Message Service keeps running in background which is not Killed when you clear whatsapp from recent apps. So whenever someone send you a message ,this message service wakes up whatsapp and you recieve a notification message.
Whatsapp is not the only app that have such type of services running in background , every apps come with such type of service and they just keep draining your battery .
How To Stop These Services ?
You just need an android app from playstore .Its name is MyAndroidTools. Its a great app which allow you to stop background services, Broadcast recievers .
It has some extra features which are useful .Know about some terms which will be useful while using this app.
★Activity: An activity represents a single screen with a user interface.
★Service: A service is a component that runs in the background to perform long-running operations or to perform work for remote processes.
★Content providers: A content provider manages a shared set of app data.Through the content provider, other apps can query or even modify the data (if the content provider allows it).
★Broadcast receivers: A broadcast receiver is a component that responds to system-wide broadcast announcements.
★Shared Preferences: Store private primitive data in key-value pairs
(Note:need root access)
1. enable/disable components(activity,service,receiver,provider)
★blue:running currently (just for service)
2. show all running tasks and processes(with pid and uid)
3. show the logcat
4. show the sharedpreferences and sqlite database of all apps
5. enable/disable apps