Android Question Callsub2 from a service with B4xpages

james_sgp

Active Member
Licensed User
Longtime User
Hi, i`m stuck on figuring out how to call a Sub on my B4xmainpage from a running service (i`m running FCM)? Any advice would be appreciated...

Thanks, James
 

DonManfred

Expert
Licensed User
Longtime User
B4X:
B4XPages.GetManager.MainPage.MySubtostart
?
 
Upvote 0

toby

Well-Known Member
Licensed User
Longtime User
1. Create a public Sub in MainPage:
Create a public Sub in MainPage:
Public Sub TestSub
    log("entering MainPage.TestSub")
End Sub
2. Call TestSub from a service or another page:
Call the TestSub from a service or any other page:
B4XPages.MainPage.TestSub
 
Last edited:
Upvote 0
Top