I'm using `Emabarcadero Delphi XE 10` Seattle Update 1 to create an Android service, i've found this tutorial [Link](https://www.youtube.com/watch?v=0mD3WLK8FYc) and created a service application, what i want to do is get current location in every 5 seconds with Location Sensor and save to database. I'm doing that on my mainform but when i close the program it's stopping, so i couldn't find any article about how i can syncronize my application and service. I've tried to add timer and Locationsensor to service form but Delphi is not allow me to add to service form any object,i think i need to send a command to service or somehow i need to connect service and program, i found a sample which shows how to download images with service but it's too expert for a rookie like me :)