rleiman Well-Known Member Licensed User Longtime User Feb 21, 2018 #1 Hi Everyone, I'm using SetExactAndAllowWhileIdle to set up a single wakeup time. Can it be used to set 5 different wakeup times? In other words can it be called multiple times with different longs and there will be a wakeup on each of them? Thanks.
Hi Everyone, I'm using SetExactAndAllowWhileIdle to set up a single wakeup time. Can it be used to set 5 different wakeup times? In other words can it be called multiple times with different longs and there will be a wakeup on each of them? Thanks.
Erel B4X founder Staff member Licensed User Longtime User Feb 21, 2018 #2 No. You need to set the next scheduled time each time. This code will help you: [B4X] Calculating the next scheduled time Upvote 0
No. You need to set the next scheduled time each time. This code will help you: [B4X] Calculating the next scheduled time
rleiman Well-Known Member Licensed User Longtime User Feb 21, 2018 #3 Hi Erel, Does it mean you can only set 1 wakeup at a time? I would like to set 5 of them when my app starts and not set 1 and when the serverce is woken up set the next one. Upvote 0
Hi Erel, Does it mean you can only set 1 wakeup at a time? I would like to set 5 of them when my app starts and not set 1 and when the serverce is woken up set the next one.
DonManfred Expert Licensed User Longtime User Feb 21, 2018 #4 rleiman said: Does it mean you can only set 1 wakeup at a time? Click to expand... Yes. when the service runs you need to shedule the next time. Upvote 0
rleiman said: Does it mean you can only set 1 wakeup at a time? Click to expand... Yes. when the service runs you need to shedule the next time.
rleiman Well-Known Member Licensed User Longtime User Feb 21, 2018 #5 Ok. I will code my app for running it that way. I hope in a future B4A release setting multiple wake ups will be available. Anyway I like using SetExactAndAllowWhileIdle. Upvote 0
Ok. I will code my app for running it that way. I hope in a future B4A release setting multiple wake ups will be available. Anyway I like using SetExactAndAllowWhileIdle.