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?
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…