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 ...
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.