Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("1")
avc1.MaximimDuration = 1000 * 60 * 0.5
avc1.MaximumFileSize = 15000000
avc1.MaximumDurationReachedToastMessage = "Спасибо, максимальная длительность записи достигнута." 'added 4 Dec 2015 - set your own toast message when Max Dur is reached during recording
avc1.MaximumFileSizeReachedToastMessage = "Спасибо, максимальный размер файла записи достигнут." 'added 4 Dec 2015 - set your own toast message when Max Files Size is reached during recording
'The video files will be stored in folder /sdcard/Videos/ of your device.
'Add code to create this folder if the folder does not exist or else just create it manually
avc1.VideoName = Application.LabelName & "_" 'amended 4 Dec 2015 - the captured video will now be stored as "video1_yyyyMMdd_HHmmss.MP4"
'i.e a date/time stamp will de added/appended to the video name
avc1.StopCameraOnMaxSizeDuration = True 'added 30 Nov 2015
avc1.ShowToastMessages = True 'added 30 Nov 2015
' avc1.VideoFolderName = "MyVideoFolder" 'added 4 Dec 2015 (it will make a folder called MyVideoFolder in the root directory of your device and store the videos in that folder
avc1.VideoFolderName = "/" & Application.LabelName 'added 4 Dec 2015 (it will make a tree of folder called MyVideoFolder/Videos in the root directory of your device and store the videos in the Videos sub folder
avc1.AddTimeStampToFileName = True