#Region Project Attributes
#ApplicationLabel: B4A Example
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: unspecified
#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 st As String
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 p As Panel
Dim l 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")
p.Initialize("p")
l.Initialize("l")
Activity.AddView(p,0,0,100%x,100%y)
p.AddView(l,0,30dip,100%x,200dip)
l.Gravity=Gravity.CENTER
Dim ticks As Long = DateTime.TicksPerHour
' Dim ticks As Long = 0
st=" day = " & DateTime.GetDayOfYear(ticks) & _
" month = " & DateTime.GetMonth(ticks) & _
" h = " & DateTime.GetHour(ticks) & _
" m = " & DateTime.GetMinute(ticks) & _
" s = " & DateTime.GetSecond(ticks)
l.Text=st
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub