I'm creating my first android app and I need to use a service. The UI will have a checkbox (CheckBoxPreference) that will be used to turn the service on/off and the service will only be accessed by my app (there's no need to share it).
So far the UI for this functionality is ready and I know how to respond to the event. What I don't know, how to create a service nor how to connect to it whatsoever?
The idea is that the service continues to listen for events and responding to them on the background and that the application is only to used to turn it on/off or to change some settings.
I've looked for tutorials on the web but I don't seem to get the process.