Android Question How to access a Public Sub in a Service from B4XMainPage

tseyfarth

Member
Licensed User
Longtime User
Hello all,

I need a call from the B4XMainPage to a Public Sub in a Service. Everything I have tried is a no-go. Can anyone tell me how to accomplish this?

Thanks
Tim
 
Solution
Thanks Johan.

This is what I used to make it all work:

Use "CallSub" to a public Sub in the Service
B4X:
CallSub(BLE, "SendMessage")

Where BLE is the Service and "SendMessage" is the public sub.

Johan Schoeman

Expert
Licensed User
Longtime User
 
Upvote 0

tseyfarth

Member
Licensed User
Longtime User
Thanks Johan.

This is what I used to make it all work:

Use "CallSub" to a public Sub in the Service
B4X:
CallSub(BLE, "SendMessage")

Where BLE is the Service and "SendMessage" is the public sub.
 
Upvote 0
Solution
Top