Khalid.
Member
How to set the timer to the microsecond
B4X:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
Timer.Initialize("timer",1)'[COLOR=rgb(184, 49, 47)]Is it possible to set a timer in microsecond [/COLOR]
End If
End Sub
Sub STT_PartialResult(text As String)
If text.Trim.length > 0 Then
partialResultBox.Text = text
timer.Enabled = False
Else
If StopBtn.Enabled Then timer.Enabled = True
End If
End Sub
Sub timer_Tick
''add space/dot when the partial result length is 0
resultBox.Text = resultBox.Text & " . "
End Sub