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