I've been working on a security-related app. This app sends the location data to the server periodically on the background. But I need to open the app (and click on a button) to start the service.
Is there a way to start this service without the need to open the app in the foreground? (Like shaking the device or clicking several times on the volume buttons)
I'm thinking maybe to start a listener on the background (through the UI) that executes the service when activated via the volume buttons?
Any help will be appreciated, thanks!