public void connectToDevice(String address,boolean secure){
  BluetoothDevice device=mBluetoothAdapter.getRemoteDevice(address);
  mChatService.connect(device,secure);
}

public void connectToDevice ( String address , boolean secure ) { BluetoothDevice device = mBluetoothAdapter . getRemoteDevice ( address ) ; mChatService . connect ( device , secure ) ; }
connect to a device
