nedium Active Member Licensed User Longtime User Nov 7, 2024 #1 how do I do since code JAVA: Expand Collapse Copy #If JAVA BA.Log("Entrando en modo PiP"); mostCurrent.activityBA.raiseEventFromUI(starter2, "OnEnterPipMode"); #EndIf I can call a sub of a service. Code Service: Expand Collapse Copy Public Sub OnEnterPipMode Log("La actividad ha entrado en modo PiP") ' Aquí puedes iniciar procesos o lógica que desees mantener activos en PiP End Sub I have used many options but none of them work or give me an error when compiling The only one that compiles but does not access correctly is this line but I don't know if it is correct mostCurrent.activityBA.raiseEventFromUI(starter2, "OnEnterPipMode"); thank you
how do I do since code JAVA: Expand Collapse Copy #If JAVA BA.Log("Entrando en modo PiP"); mostCurrent.activityBA.raiseEventFromUI(starter2, "OnEnterPipMode"); #EndIf I can call a sub of a service. Code Service: Expand Collapse Copy Public Sub OnEnterPipMode Log("La actividad ha entrado en modo PiP") ' Aquí puedes iniciar procesos o lógica que desees mantener activos en PiP End Sub I have used many options but none of them work or give me an error when compiling The only one that compiles but does not access correctly is this line but I don't know if it is correct mostCurrent.activityBA.raiseEventFromUI(starter2, "OnEnterPipMode"); thank you
Erel B4X founder Staff member Licensed User Longtime User Nov 10, 2024 #2 It is not correct. 1. The event sub must be lowercase. 1.5. Better to add an underscore to the event sub so it won't be obfuscated. 2. You aren't accessing the BA object correctly. There isn't enough information here to say what is the correct way. Upvote 0
It is not correct. 1. The event sub must be lowercase. 1.5. Better to add an underscore to the event sub so it won't be obfuscated. 2. You aren't accessing the BA object correctly. There isn't enough information here to say what is the correct way.