Code example for BluetoothSocket

Methods: isConnected

0
    return mBluetoothSocket;
  } 
 
  public boolean isConnected() { 
    if (mBluetoothSocket != null) {
      return mBluetoothSocket.isConnected();
    } 
    return false; 
  } 
 
  /** 
   * Connects the bluetooth socket. 
   */ 
  public void connectSocket() { 
    Log.d(LOG_TAG, "Connecting bluetooth socket.");
    while (mBluetoothSocket == null) {
      try { 
        Thread.sleep(1000);
      } catch (InterruptedException e) {
        Log.d(LOG_TAG, "Sleep interrupted.", e);
Stop searching for code, let great code find you!  Add Codota to your java IDE