Android Tutorial [B4X] B4XPages enhanced example

In case anyone is interested I attach a modified version of Erels' ThreePagesExample for B4A only. It demonstrates the following enhancements.

1) B4XMainPage requests a Runtime permission.

2) All three pages have a B4XDrawer menu with some code in B4XPage_CloseRequest to close the Drawer if it is open instead of going back.

3) Page 3 changes the use of Action Home to open the Drawer, has some menu items added, and has the code to close the Drawer when the menu becomes visible.
 

Attachments

Thank you very much, I was looking for the events.

B4X:
Sub B4XPage_Appear
End Sub

Sub B4XPage_Disappear
End Sub

Sub B4XPage_Foreground
End Sub

Sub B4XPage_Background
End Sub


I initially thought it was Sub B4XPage_Resume

Saved me!
Thank you again.
 

Similar Threads

Back
Top