public synchronized void connected(BluetoothSocket socket,BluetoothDevice device,final String socketType){
  log.debug("connected, Socket Type:" + socketType);
  if (mBtConnectThread != null) {
    mBtConnectThread.cancel();
    mBtConnectThread=null;
  }
  if (mBtWorkerThread != null) {
    mBtWorkerThread.cancel();
    mBtWorkerThread=null;
  }
  connectionEstablished(device.getName());
  mBtWorkerThread=new BtWorkerThread(socket,socketType);
  mBtWorkerThread.start();
}

public synchronized void connected ( BluetoothSocket socket , BluetoothDevice device , final String socketType ) { log . debug ( "connected, Socket Type:" + socketType ) ; if ( mBtConnectThread != null ) { mBtConnectThread . cancel ( ) ; mBtConnectThread = null ; } if ( mBtWorkerThread != null ) { mBtWorkerThread . cancel ( ) ; mBtWorkerThread = null ; } connectionEstablished ( device . getName ( ) ) ; mBtWorkerThread = new BtWorkerThread ( socket , socketType ) ; mBtWorkerThread . start ( ) ; }
start the btworkerthread to begin managing a bluetooth connection
