Post 1 made on Thursday March 14, 2019 at 08:43 |
sebastian Long Time Member |
Joined: Posts: | September 2003 93 |
|
|
Hi, I had a little time fiddling with ProntoScript today and wrote a few lines to report the battery status of my 9800 back to my home automation software. Now I'm looking for a way to update the report maybe every hour or so. I would also be good if this only happend when the device is awake (or maybe also each time it wakes up).
As I see it now, that's not really possible, is it? As all the code is only running in a specific activity's context, I'd have to copy the same code to all activities, right? Or is there some way to use onSleep()/onWake() or scheduleAfter() on a system level?
Sebastian
|
|
|