Android Question How to wait in a service?

GvD

Member
Licensed User
Hi, my problem now is, that the loop will take a lot of energy because the loop is so fast
waiting for event - staying in Sensorchanged 16:11:49,045
waiting for event - staying in Sensorchanged 16:11:49,050
waiting for event - staying in Sensorchanged 16:11:49,246
waiting for event - staying in Sensorchanged 16:11:49,251
waiting for event - staying in Sensorchanged 16:11:49,452
waiting for event - staying in Sensorchanged 16:11:49,459
waiting for event - staying in Sensorchanged 16:11:49,654
waiting for event - staying in Sensorchanged 16:11:49,660
waiting for event - staying in Sensorchanged 16:11:49,741
waiting for event - staying in Sensorchanged 16:11:49,747
waiting for event - staying in Sensorchanged 16:11:49,951
waiting for event - staying in Sensorchanged 16:11:49,956
from Check_BT in LogData called from Loop Admin_DiscoveryFinished 16:11:59,369
waiting for event - staying in Sensorchanged
...
Is it possible, to slow down this i.e. with a timer ( but in a service? )
StartServiceAt also is no good solution.
In Purebasic for example there is an instruction called WaitWindowEvent(TimeToWait)
 

Attachments

Top