try { this._socket = this._device.createRfcommSocketToServiceRecord(UUID.fromString("00001101-0000-1000-8000-00805F9B34FB")); localButton = (Button)findViewById(2131099658); } catch (IOException localIOException2) { try { Button localButton; this._socket.connect(); Toast.makeText(this, "连接" + this._device.getName() + "成功!", 0).show(); localButton.setText("断开"); } catch (IOException localIOException2) {/*code*/}
谢谢了
相关分类