#Region Project Attributes
#ApplicationLabel: b4aOCRComplete
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
'#AdditionalRes: ..\resource
#AdditionalRes: ..\LibRes
#AdditionalRes: ..\SampleRes
'#AdditionalRes: C:\Users\----------2\Documents\Basic 4 Android\JOHAN APPS\JHS LIBS\resource\b4a_appcompat, de.amberhome.objects.appcompat
'#AdditionalRes: C:\ANDRIOD_SDK_TOOLS\extras\android\support\v7\appcompat\res, android.support.v7.appcompat
'#AdditionalRes: C:\ANDRIOD_SDK_TOOLS\extras\google\google-play-services\libproject\google-play-services_lib\res, com.google.android.gms
'#AdditionalRes: C:\ANDRIOD_SDK_TOOLS\extras\android\support\design\res, android.support.design
'#ExcludeClasses: .games, .drive, .ads, .fitness, .wearable, .measurement, .cast, .auth, .nearby
'#ExcludeClasses: .tagmanager, .analytics, .wallet, .plus, .gcm, .maps, .panorama
'#Extends: android.support.v7.app.AppCompatActivity
#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 Button1 As Button
Dim dtp As SlideDayTimePicker
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")
dtp.Initialize("dtp")
dtp.HourFormat24 = True
dtp.IndicatorColor = Colors.Green
dtp.InitialDay = 6
dtp.InitialHour = 19
dtp.InitialMinute = 28
dtp.ShowToastMessage = True
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Button1_Click
dtp.StartPicker
End Sub
Sub dtp_selected_day_time(myday As Int, myhour As Int, myminute As Int)
Log("In B4A and day = " & myday) 'Sunday = day 1, etc up to Saturday = day 7
Log("In B4A and hour = " & myhour)
Log("In B4A and minute = " & myminute)
End Sub
Sub dtp_selection_cancelled
Log("In B4A and selection cancelled")
End Sub