Maybe he might need a "first time appeared".
A private variable in the Class_Globals would be sufficient.
B4X:
Sub Class_Globals
Private mFirstTimeAppeared As Boolean = True
Private Sub B4XPage_Appear
If mFirstTimeAppeared Then
Else
End If
mFirstTimeAppeared = False
End Sub
If you have to, like I have to, show something and work on something that includes resumable calls only once, I can't write this code in the Created routine, then I need "such a "complicated" solution" ?
If you have to, like I have to, show something and work on something that includes resumable calls only once, I can't write this code in the Created routine, then I need "such a "complicated" solution"
If you do want to do something when the page appears then use that event.
In my experience, the Appear event, is used in many cases when developers try to imitate the complex activities behavior, and don't realize that you can directly access the page elements and do whatever you need immediately.
The Appear event can be useful to enable timers for example.
Ok... In my case I load a layout first time the page created and I load a second one when I get back to the that page.
How else to do if not control B4XPage_Appear?