Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Private lv As ListView
Private lbl_1Score As Label
Private lbl_2Score As Label
Private lbl_3Score As Label
Private lbl_4Score As Label
Private lbl_5Score As Label
Private Button1 As Button
Private EditText1 As EditText
Dim objMap As Map
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("main")
objMap.Initialize
' PLEASE NOTE that the Layout must be loaded FIRST before you put the objects into the map!
' We now add all Objects to the map giving them unique names
' We want to use them later in the button-click event
objMap.Put("button1",Button1)
objMap.Put("listview",lv)
objMap.Put("score1",lbl_1Score)
objMap.Put("score2",lbl_2Score)
objMap.Put("score3",lbl_3Score)
objMap.Put("score4",lbl_4Score)
objMap.Put("score5",lbl_5Score)
objMap.Put("Edit1",EditText1)
For i = 0 To 49
lv.AddSingleLine(i)
Next
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub lv_ItemClick (Position As Int, Value As Object)
End Sub