I tried to create a featured service, but I can not keep the app active. You can give me some indication. Although I fear that it consumes too much battery.
So, I was thinking about managing event when the app is going to go into sleep mode.
You need to create a foreground service. This will allow you to do something when the screen turns off (with PhoneEvents).
I have already created two services that remain (should) active. One is a starter and another service to manage GPS. or do I have to set some particular parameter settings?
Not possible unless your app is currently running.