importClass(android.widget.Toast);
importClass(java.lang.Runnable)
importClass(java.lang.Thread)
Toast.makeText(context, "开始运行", 0).show();
var th =new Thread(new Runnable() {
run: function() {
for(var i=0;i<10;i++){
log(i)
new Thread.sleep(1000);
}
}
}).start();