Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim timer 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.
Dim pcv As PercentageChartView
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")
timer.Initialize("timer",1000)
timer.Enabled=True
pcv.Initialize("pcv")
Activity.AddView(pcv,0,0,100%x,100%y)
pcv.BackgroundColor= Colors.Gray
pcv.TextColor= Colors.Yellow
pcv.ProgressColor= Colors.Green
End Sub
Sub timer_tick
If pcv.Progress< 360 Then
pcv.setProgress(pcv.Progress+1,True)
End If
End Sub
Sub pcv_onprogresschanged(progr As Float)
Log(progr)
End Sub