#Region Activity Attributes
#FullScreen: True
#IncludeTitle: False
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim btnone As Button
Dim edt1 As EditText
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
Activity.LoadLayout("8x18")
Activity.SetBackgroundImage(LoadBitmap(File.DirAssets, "background.png"))
edt1.Color = Colors.White
End Sub
Sub btnone_click
If edt1.Text = 144 Then
Msgbox("Correct answer", "Result")
btnnext_click
Else
Msgbox("Wrong answer", "Result")
End If
End Sub
Sub btnnext_click
StartActivity("eightnineteen")
Activity.finish
End Sub