Android uses AlarmManager (http://developer.android.com/reference/android/app/AlarmManager.html) to schedule apps / services to run in the future, so I suspect that B4A's StartServiceAt makes a call to AlarmManager.set - but I don't know if there is a B4A equivalent of this method. Maybe you could use Java Object or Reflection to call it directly?
Android uses AlarmManager (http://developer.android.com/reference/android/app/AlarmManager.html) to schedule apps / services to run in the future, so I suspect that B4A's StartServiceAt makes a call to AlarmManager.set - but I don't know if there is a B4A equivalent of this method. Maybe you could use Java Object or Reflection to call it directly?
So like I said - you could possibly use JavaObject or Reflection. These are both "B4A solutions" - & if there is no B4A equivalent to AlarmManager.set, then those are probably the only options you have.
So like I said - you could possibly use JavaObject or Reflection. These are both "B4A solutions" - & if there is no B4A equivalent to AlarmManager.set, then those are probably the only options you have.
You need to track the state of scheduled tasks yourself. However you can always call StartServiceAt to schedule a task (there will only be a single task anyway) or CancelScheduledService to cancel a scheduled task if such exists.
Thank you ! I have a BIG BIGBIG problem that I cannot check the "StartServiceAt to schedule a task" on my project. "there will only be a single task anyway" is a GOOD ANSWER. NOW, everything is OK. Thank you very much !
You need to track the state of scheduled tasks yourself. However you can always call StartServiceAt to schedule a task (there will only be a single task anyway) or CancelScheduledService to cancel a scheduled task if such exists.
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.