This should be simple, but it is a mystery. I want a login panel to be visible in the Main Activity.
I get no error. I check with a message box. The FolderName is "Demo". This should make LogYn = True. But it is always false. It does not make sense.
I get no error. I check with a message box. The FolderName is "Demo". This should make LogYn = True. But it is always false. It does not make sense.
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("MainMenu")
Dim FolderName As String
FolderName = File.ReadString(File.DirRootExternal, "QQFiles/FolderName.txt")
Dim LogYn As Boolean
If FolderName = "Demo" Then LogYn= True 'FolderName is "Demo"; LogYn is False
If LogYn =True Then pnlLogin.Visible= True
End Sub