#Region Project Attributes
#ApplicationLabel: ArrowDownloadButton
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: landscape
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim t, t1 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 adb1 As ArrowDownloadButton
Dim cnt As Float = 0
Private Label1 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("main")
t.Initialize("t", 100)
t1.Initialize("t1", 2000)
adb1.RingColor = Colors.Blue
adb1.ProgressColor = Colors.yellow
adb1.ProgressTextColor = Colors.white
adb1.ArcWidth = 30
adb1.ProgressTextSize = 60
Label1.Visible = True
Label1.Color = Colors.Transparent
Label1.TextColor = Colors.White
Label1.TextSize = 30
End Sub
Sub Activity_Resume
adb1.startAnimating
t1.Enabled = True
End Sub
Sub Activity_Pause (UserClosed As Boolean)
t.Enabled = False
End Sub
Sub t_tick
If cnt < 101 Then
' Log(adb1.Progress)
cnt = cnt + 1
adb1.Progress = cnt
Label1.Text = cnt & "%"
Else
cnt = 0
t.Enabled = False
Label1.Text = ""
adb1.reset
End If
End Sub
Sub t1_tick
t.Enabled = True
t1.Enabled = False
End Sub