Will StopService remove my ServiceStartAt from the queue?
Yes I do.
The sequence of events is:
ServiceStartAt (for the next hour)
StartForeground
...dosomework...
StopForeground
Each hour the ongoing notification pops up while in Foreground (but with the hour of when the service started originally, not this round), then dissapears when it completes with StopForeground.
To reset the time, I put StopService("") after StopForeground, this stops the service, and the next iteration the time is correct.
BUT . . . is this OK to call StopService each hour? That will not somehow undo my StartServiceAt scheduling will it?
If this is bad programming practice, or there is a better way, please let me know,
Craig