Android Question Executing a sub at a given intervat

pauleffect

Member
Licensed User
Longtime User
Hi guys.

I'm trying to execute a check every x seconds. How should I best proceed to call a sub execution at every timer tick?
 

jsanchezc

Member
Licensed User
Longtime User
Remember set timerx.enabled=false
then call sub and set again timerx.enabled=true
before end sub
B4X:
Sub Timerx_tick
  Timerx.Enabled=False 'to avoid reentry by timer while executing code here
  ../.. your code here ... call sub....
  Timerx.enabled=true
End Sub
 
Upvote 0
Top