#Region Project Attributes
#ApplicationLabel: DialTimePicker
#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.
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 dtp1 As DialTimePicker
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")
dtp1.HourFormat24 = False
dtp1.CanvasColor = Colors.Transparent
dtp1.TextColor = Colors.Yellow
dtp1.DialColor = Colors.Blue
dtp1.ClockColor = Colors.Red
dtp1.setTime(17, 28) 'or dtp1.initTime(17, 28) ----> dtp1.initTime(hour, minutes)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub dtp1_time_changed(hr As Int, minute As Int, AmPm As String)
Log("hour = " & hr)
Log("minute = " & minute)
Log("AM PM = " & AmPm)
End Sub