Android Question How to wait in a service?

Discussion in 'Android Questions' started by GvD, Jul 1, 2015.

  1. GvD

    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)
     

    Attached Files:

  2. DonManfred

    DonManfred Expert Licensed User

    Yes (yes)
     
  3. GvD

    GvD Member Licensed User

    Thank you! This was very helpful.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice