I understand that this returns an ordered B4XSet with the current stack of pages, but I wonder what exactly "current stack of pages" means.
If a page is closed by pressing the Android < button then that page doesn't show in the above list, but it must exist in some form as I don't
have to load the layout of that page again before showing the page again.
I have my own way of keeping track of pages that have been shown. In the page class:
And that works all fine, but just wonder if I am duplicating something that is already in B4XPages
and also how one could use B4XPages.GetManager.mStackOfPageIds.
RBS
If a page is closed by pressing the Android < button then that page doesn't show in the above list, but it must exist in some form as I don't
have to load the layout of that page again before showing the page again.
I have my own way of keeping track of pages that have been shown. In the page class:
B4X:
Sub Class_Globals
Private Root As B4XView 'ignore
Private xui As XUI 'ignore
Private cMP As B4XMainPage
Private Const iPageCode As Int = 27
End Sub
Public Sub Initialize As Object
cMP = B4XPages.GetPage("mainpage")
Return Me
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Load_Layout
End Sub
Sub B4XPage_Appear
cMP.mapB4XPages.Put(iPageCode, 1)
End Sub
Sub Load_Layout '(iButtonToClick As Int)
Root.LoadLayout(Enums.arrB4XPagesNames(iPageCode))
AddMenuBar
AddOverflowPanels
End Sub
And that works all fine, but just wonder if I am duplicating something that is already in B4XPages
and also how one could use B4XPages.GetManager.mStackOfPageIds.
RBS