Android Question How to check the startServiceAt status ?

palmzac

Active Member
Licensed User
Longtime User
Hi,

How to check the scheduled startServiceAt status ? I want to know that this service was scheduled or not. Thank you !
 
Last edited:

Computersmith64

Well-Known Member
Licensed User
Longtime User
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?

- Colin.
 
Upvote 0

palmzac

Active Member
Licensed User
Longtime User
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
If you click on the links in my previous post, you can read the documentation on those functionalities.

- Colin.
 
Upvote 0

palmzac

Active Member
Licensed User
Longtime User
Erel,

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.
 
Upvote 0
Top