Please tell me what is B4X Class life? When is launched Initialize sub and B4XPage_Created sub? Because i need to read a file from disk when a B4XPage load the layout. I mean every time the layout appears on the screen.
I made an application with B4XPages and in a B4XPage i need to read a text file with some sensors information. These information need to appear on some buttons on layout. So, when runs Initialize sub and B4XPage_Created sub ? When i switch from a B4XPage to other and back, i need to read this file for layout.
If you want the layout of a page to be immediately available then call B4XPages.AddPageAndCreate instead of AddPage. This will cause B4XPage_Create to be raised immediately. This is very useful.