code: public boolean startDiscovery(BeanDiscoveryListener listener) {
          if (mScanning) {
              Log.e(TAG, "Already discovering");
              return true;
          }
  
          mListener = listener;
          return scan();
      }
docs: Start discovering nearby Beans. If a discovery is in progress, it will be canceled. A
  discovery will run for a limited time after which
  {@link BeanDiscoveryListener#onDiscoveryComplete()} will be called.
  
  @param listener the listener for reporting progress
  @return false if the Bluetooth stack was unable to start the scan.