transIDs[i] = discoveryAgent.searchServices(null, uuidSet,
rd, this);
} catch (BluetoothStateException e) {
continue;
}
}
try {
//阻塞,由serviceSearchCompleted()回调方法在所有设备都搜索完的情况下唤醒
wait();
} catch (InterruptedException e1) {
e1.printStackTrace();
}
showInfo("服务搜索完毕,共找到"+records.size()+"个服务,准备发送请求");
if(records.size()>0){
this.append(input);
this.addCommand(new Command("发送",Command.OK,0));
}
//删除Gauge
this.delete(1);
}
/**
* debug
* @param s
*/
上一篇:JBuilder2005 Servlet开发之自启动
下一篇:Java环境配置的Classpath使用故障实例
|