good afternoon, I have started to use b4xpages currently I have 2 pages.
with the following code
but every time I try to show Page2 it doesn't show up unless I press the back button on the phone.
why I am doing wrong?
with the following code
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("Page1")
Page2.Initialize
B4XPages.AddPage("Page2", Page2)
'Here i will call sub to show page2
loadMysecondpage
End sub
public Sub loadMysecondpage
B4XPages.ShowPageAndRemovePreviousPages("Page2")
End sub
but every time I try to show Page2 it doesn't show up unless I press the back button on the phone.
why I am doing wrong?