0

Is it possible to pass variable value from activity to python. I am having file duration,i want to pass it to python script and set Monkeyrunner.sleep(fileduration) in my script.

how can i be able to do that.

Regards Mayank

Mayank Agarwal
  • 447
  • 1
  • 7
  • 21

1 Answers1

0

You should use some method to communicate from your Activity to your python script. It would be possible to create a SocketServer and then invoke it from inside your Activity passing the desired value. Files could also be used as a rudimentary form of communication.

Diego Torres Milano
  • 65,697
  • 9
  • 111
  • 134