static volatile bool framesBot_has; static Android3 framesBot() { if (framesBot_has) null; framesBot_has = true; new Android3 android; android.greeting = programIDPlusHome() + " Frames."; android.console = false; android.responder = new Responder { public S answer(S s, L history) { if "activate frames" { awt { // prevent blocking when called from same program's AWT thread activateMyFrames(); } ret "OK, activating " + programName(); } null; } }; ret makeBot(android); }