I want to create a service that runs after 24 hours from when it is started and show a notification, and at the same time the service must stop. (It will be run again in the app). Can someone please provide a working example with subs included to easily understand what's going on. Many people tend to post only a short code snippet in belief that everybody will know how a service works but this is not always the case. If the service is started at 12.00 the first time it will run again the next day at 12.00 even when the phone is restarted. I have read many posts about people using timers and that works for me as well but there's not much about what I want, which is more complicated but more effective as it saves the battery. It is not clear about the differences between ServiceStart and ServiceStartAt as well as how to associate the timed service with something that will happen so an explanation about service_create_service_start_service_tick and service_destroyed is appreciated to know how to start and stop the service. As this is more complex than using a counting timer please prove a complete example in which subs to put the code. It is important to use services with caution especially when started at bootup or else it will cause problems since it will be difficult to stop the service that's why I ask help in this matter. Adding the extra time to provide subs will probably be of great help to many.
Cheers,
ThRuST
Cheers,
ThRuST