I've got a particular monkeyrunner script (in Jython), which I use for taking screenshots or touching particular coordinates. My main program is written in Perl - it just executes monkeyrunner scripts when their functionality is need.
The problem is in slowness of such method: every time in monkeyrunner script I should get a MonkeyDevice object and work with it:
device = MonkeyRunner.waitForConnection()
And the whole operation seems to take from 5 to 9 seconds, which is very slow for my program.
Is there any way of working (at least, touching coordinates) more quickly?
Thank you.