Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim linker As Linker
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 tv As Label
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")
tv.Initialize("tv")
Activity.AddView(tv,0,0,100%x,100%y)
tv.Text= "This is a text for test purpose only , you can't use it in commercial projects without permission"
linker.Initialize("linker",tv)
linker.addStrings(Array As String("only","permission"))
Dim prof As LinkProfile
prof.Initialize("purpose",Colors.Red,False)
linker.addProfiles(Array As LinkProfile(prof))
linker.update
End Sub
Sub linker_onlinkclick(clicked As String)
Log(clicked&" was clicked")
End Sub