Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim Timer1 As Timer
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.
Private Button1 As Button
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("1") 'Layout just contains Button1
Timer1.Initialize("Timer1",500)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
Timer1.Enabled = False
End Sub
Sub Button1_LongClick
Timer1.Enabled = True
End Sub
Sub Button1_Up
Timer1.Enabled = False
End Sub
Sub Timer1_Tick
Log("Tick")
'Volume control goes here
End Sub