Suppose I have written a custom java module, and I am monitoring a variable which is used in various places in the module and should hold intended value in onMainActivityResult() block. From my gd script, I can perform polling in a continuous loop (through getter methods defined in the java module) and monitor the variable value. However, since I know the variable value will be useful only during the activity result block is being executed, the polling mechanism is a useless overhead.
Is there any way an event notification can be performed from a java module to the calling gd script ?