Android Question Time to next service start

ducphu

Active Member
Licensed User
Longtime User
Hi all,

I use StartServiceAt("",DateTime.Now + 1 * DateTime.TicksPerHour,True) to schedule my service to run every hour. My question is, after the service started, I want to know how much time until the next run. I.e first run at 7.00 so next run is scheduled at 8.00. Now is 7.45 which means 15mins before the next run. How can I get this "15mins" value?
 

DonManfred

Expert
Licensed User
Longtime User
Save the actual time to be able to recalculate the remaining time on next run
 
Upvote 0
Top