Android Question 1of 2 Options B4XPages.ShowPage or root.LoadLayout

Tamer El-Shimy

Member
Licensed User
Longtime User
As usual I've a login page instead of the general B4XMainPage
Should I use
Page Show and Hide Other:
B4XPages.ShowPageAndRemovePreviousPages(LoginPage)
? It loads the page correctly but with the back button of Main Page? This fits me but still the Main Page displays.

The other is :
Page Show and Hide Other:
Root.LoadLayout(LoginPage)
Loads the interface layout , but It doesn't get the enhancements like RemoveLineFromEditText , LoadCredentials
 

LucaMs

Expert
Licensed User
Longtime User
I think it is best to use the B4XMainPage as login page. If the data entered by the user is valid, using ShowPageAndRemovePreviousPages open a page that could be your app's Home page.

I'm attaching a small test project just created.
 

Attachments

  • B4XPageLogin.zip
    16.1 KB · Views: 169
Upvote 0
Top