Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("layot1")
If B4XPages.MainPage.activity1.a1=0 Then
MsgboxAsync("xxx", "info")
Else If B4XPages.MainPage.activity1.a1=1 Then
MsgboxAsync("yyy", "info")
End If
End sub