views:

207

answers:

1

Could someone explain how to use the Timer.schedule - that is used for scheduling tasks - in Python?

Note that Python's time.sleep will not work in Android.

A: 

time.sleep does work on the Android Scripting Environment (at least for the last 5 releases or so). I've just tested it on the interpreter console.

On the other hand, some dialogs (like makeToast, for instance) won't hold the script execution while they're being displayed. Perhaps that's why you may be feeling time.sleep doesn't work.

rbp