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
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")
lv.Clear
Dim m As Map
m.Initialize
m.Put("Line1","Bla bla bla")
m.Put("Line2","ho ho ho")
m.Put("Another string or whatever","Test")
lv.AddTwoLines2(m.Get("Line1"),m.Get("Line2"),m)
Dim m As Map
m.Initialize
m.Put("Line1","Hello World")
m.Put("Line2","Most used words in Examples")
m.Put("Another string or whatever","Test")
lv.AddTwoLines2(m.Get("Line1"),m.Get("Line2"),m)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub lv_ItemClick (Position As Int, Value As Object)
Dim m As Map = Value
Log("Clicked item no "&Position)
Log("Line1: "&m.Get("Line1"))
Log("Line2: "&m.Get("Line2"))
End Sub