You are using a target SDK of 26 in manifest and File.DirrootExternal to store data. You need to use runtime permissions for it to work:
You need this in starter service. Do not forget to add the runtimePermissions library:
Sub Process_Globals
Public rp As RuntimePermissions 'need runtimePermissions library
End Sub
You also need this in Activity_Create:
Sub Activity_Create(FirstTime As Boolean)
Starter.rp.CheckAndRequest(Starter.rp.PERMISSION_WRITE_EXTERNAL_STORAGE) '
Wait For Activity_PermissionResult (Permission As String, PResult As Boolean)
If PResult = False Then
MsgboxAsync("No permission to access external storage", "")
Return
Else
Log("Granted")
End If
Activity.LoadLayout("Main")
Activity.AddMenuItem("Principal", "main")
Activity.AddMenuItem("Datos", "datos")
Activity.AddMenuItem("Brucelosis", "brucelosis")
Activity.AddMenuItem("Tuberculosis", "tuberculosis")
Activity.AddMenuItem("Salir", "salir")
lstTextB.Initialize
lstTextT.Initialize
End Sub
There may be other stuff, but I do not understand the Spanish text on your buttons and menus.