iOS Question How to call a sub in B4XMainPage ?

amer bashar

Member
Licensed User
Hi,
I`v wrote all my code in the B4XMainPage, I want to call a sub in this page when Application_Foreground fired, but this is located in "Main" file, I`v tried:
B4X:
Private Sub Application_Foreground
    B4XPages.Delegate.Activity_Resume
    Dim p As B4XMainPage
    CallSubDelayed(p,"downloadphotos")
End Sub
with no luck
Please help :)
 
Top