Devv Active Member Licensed User Longtime User Aug 7, 2014 #1 Hi how can i start a service a specified time for example at 3 am every day then it will do some stuff then destroy itself . the next day it will relaunch at 3 am do the stuff then destroy it self and so on for everyday ...
Hi how can i start a service a specified time for example at 3 am every day then it will do some stuff then destroy itself . the next day it will relaunch at 3 am do the stuff then destroy it self and so on for everyday ...
mangojack Expert Licensed User Longtime User Aug 7, 2014 #2 See this thread Here ... basically .. Code: Copy Sub Service_Start (StartingIntent As Intent) ScheduleNextServiceStart(3,0) 'Do some stuff ............. StopService("") End Sub Sub ScheduleNextServiceStart(Hours As Int, Minutes As Int) 'see above thread for code ... End Sub Upvote 0
See this thread Here ... basically .. Code: Copy Sub Service_Start (StartingIntent As Intent) ScheduleNextServiceStart(3,0) 'Do some stuff ............. StopService("") End Sub Sub ScheduleNextServiceStart(Hours As Int, Minutes As Int) 'see above thread for code ... End Sub