/**
* Bind boolean.
*
* @param socket the socket
* @return the boolean
*/
public boolean bind( BluetoothSocket socket )
{
mmSocket = socket;
macAddress = mmSocket.getRemoteDevice().getAddress();
// Get the BluetoothSocket input and output streams
try
{
mmInStream = socket.getInputStream();
mmOutStream = socket.getOutputStream();
this.isRunning = true;
// 펜 연결 후 맨 처음 펜정보를 요청한다.(프로토콜 2.0)
startConnect();
return true;
}
catch ( IOException e )
{
NLog.e( "[BTAdt/ConnectedThread] temporary sockets is not created", e );
}
return false;
}
BTAdt.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:AndroidSDK2.0
作者:
评论列表
文章目录