Android Question Timer Stops

tamba sylvester

Member
Licensed User
timer:
Sub timer1_Tick
    sectimer= sectimer+1
    If sectimer==60 Then
        sectimer= 0
    End If
    currentSec.Text=sectimer
    lbltimer.Text=  sectimer
End Sub

Timer Stops when I press a button in the activity, Any Help
 

tamba sylvester

Member
Licensed User
Where is the button code?
In the Same Home activity
B4X:
Private Sub Timerbtn_Click
    Dim timeroptions As List
    timeroptions.Initialize
    timeroptions.AddAll(Array As String("Start 1st Half","End 1st Half","Start 2nd Half","End 2nd Half"))
    Dim timerid As id
    selectedTimerOption = timerid.InputList1(timeroptions,"Timer Option")

    If selectedTimerOption ==1   Then
                    
        'add1stHalfTime
                        
    End If
    

End Sub
 
Upvote 0
Top