gzbus.bsh
source("/sdcard/com.googlecode.bshforandroid/extras/bsh/android.bsh");
a = Android();
a.call("addOptionsMenuItem","Exit","exit");
a.call("webViewShow","http://gzbusnow.sinaapp.com/index.php");
while( true){
response = a.call("eventWait").get("result");
if( response == null) continue;
print( response);
if( response.get("name").equals("exit")) break;
}bsh for android : 广州公交实时查询,布布扣,bubuko.com
原文:http://blog.csdn.net/belldeep/article/details/22492361