Hi
I have two activity pages, when the A activity is started, the timer_tick will run and the B activity page will open
When B's activity page is opened, A's timer will stop?
Excuse me, how can I make the timer of A still run after the start of B
What should I do
please help ...thanks
I have two activity pages, when the A activity is started, the timer_tick will run and the B activity page will open
When B's activity page is opened, A's timer will stop?
Excuse me, how can I make the timer of A still run after the start of B
What should I do
B4X:
'====A activity=======
Sub Process_Globals
Dim Atimer As Timer
Dim wifi As MLwifi
End Sub
Sub Activity_Create(FirstTime As Boolean)
Atimer.Initialize("Atimer_err",5000)
Atimer.Enabled=True
End Sub
Sub Atimer_err_tick
if wifi.isOnline = False then
StartActivity("B")
End if
End Sub
'====B activity=======
Sub Process_Globals
Dim Btimer As Timer
End Sub
Sub Activity_Create(FirstTime As Boolean)
Btimer.Initialize("Btimer_err",1000)
Btimer.Enabled=True
End Sub
Sub Btimer_err_tick
if A.wifi.isOnline = Ture then
Activity.Finish()
End if
End Sub
please help ...thanks