Sub Globals
Dim dlgFileExpl As ClsExplorer
End Sub
Sub Activity_Create(FirstTime As Boolean)
CreatFileExp
End Sub
Sub CreatFileExp
dlgFileExpl.Initialize(Activity, "/mnt/sdcard", "", True, False, "OK")
dlgFileExpl.DialogRect.Left = 5dip
dlgFileExpl.DialogRect.Right = 100%x - 10dip
dlgFileExpl.DialogRect.Top = 5dip
dlgFileExpl.DialogRect.Bottom = 100%y-60dip
dlgFileExpl.BackgroundColor = Colors.LightGray
dlgFileExpl.BorderColor = Colors.RGB(128, 128, 128)
dlgFileExpl.FolderTextColor = Colors.Black
dlgFileExpl.FileTextColor1 = Colors.Blue
dlgFileExpl.FileTextColor2 = Colors.White
dlgFileExpl.DividerColor = Colors.Gray
dlgFileExpl.Explorer
If Not(dlgFileExpl.Selection.Canceled OR dlgFileExpl.Selection.ChosenFile = "") Then
Msgbox("File:" & CRLF & dlgFileExpl.Selection.ChosenPath & "/" & dlgFileExpl.Selection.ChosenFile, "Your choice")
End If
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub Activity_KeyPress(KeyCode As Int) As Boolean
If dlgFileExpl.IsInitialized Then
If dlgFileExpl.IsActive Then Return True
End If
End Sub