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*/}谢谢了
目前暂无任何回答
- 0 回答
- 0 关注
- 1060 浏览
添加回答
举报
0/150
提交
取消