I am creating my first Android application and I need to use the service. The user interface will have a checkbox (CheckBoxPreference) that will be used to enable / disable the service, and access to the service will be available only to my application (there is no need to share it).
So far, the user interface for this function is ready, and I know how to respond to the event, that I do not know how to create a service and how to connect to it at all.
The idea is that the service continues to listen to events and respond to them in the background, and that the application is used only to turn on / off or to change some parameters.
I searched for tutorials on the Internet, but I don't seem to get this process.
android android-service
Pedroc88
source share