Hello,
I have a login layout.
When there is no file on my device with a key, the login should showed.
When there is a file then another layout should be showed.
This workes :
The SendKeyAndPhoneid sub checks if the user is known in a mysql database on a server.
I communicate with httputils2.
When everything checks out, then another layout starts.
Now my question : I want to have a logout from the screen and when the user clicks it i should show the Main view but with ogin screen.
How can I do this? One activity with two layout?
Or another solution?
I have a login layout.
When there is no file on my device with a key, the login should showed.
When there is a file then another layout should be showed.
This workes :
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
If File.Exists(File.DirInternal, "robomobile.txt") = True Then
SendKeyAndPhoneid
Else
Activity.LoadLayout("login")
End If
End Sub
I communicate with httputils2.
When everything checks out, then another layout starts.
Now my question : I want to have a logout from the screen and when the user clicks it i should show the Main view but with ogin screen.
How can I do this? One activity with two layout?
Or another solution?