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
 
Top