Code modules in B4A do not have a context of their own so they cannot intercept events. Classes share the same context as the module that initialized them so they can handle events.
Code modules in B4A do not have a context of their own so they cannot intercept events. Classes share the same context as the module that initialized them so they can handle events.
Create the class, then a Public object of type YourClass (a good place is the Starter service) and you can call its methods from all other modules, as if it were a code module (Starter.YourObject.MethodOne(param1,...))