title: Android BLE setReportDelay()
body: <p>I'm trying to implement a BLE scan app where i want to list all the devices nearby in a single scan rather than getting one BLE device at a time.</p>
  
  <p>I read from the Android Documentation that i can use setReportDelay() in the Scan Setting Builder to delay the scan results and to use the BatchScanResults() to get a batch/list of devices found.</p>
  
  <p>However when i try to use the setReportDelay() in the Scan Settings builder the scan does not start at all and i get the following error.</p>
  
  <pre><code>04-13 16:03:19.887    8454-8454/com.example.sasnee_lab2.sasbeacon D/BluetoothLeScanner﹕ could not find callback wrapper
  </code></pre>
  
  <p>Here is my StartScan function with Scan Settings</p>
  
  <pre><code>public void startScan(BluetoothLeScanner scanner)
  {
      ScanFilter filter = new ScanFilter.Builder().setDeviceName(null).build();
  
      ArrayList&lt;ScanFilter&gt; filters = new ArrayList&lt;ScanFilter&gt;();
                      filters.add(filter);
  
      ScanSettings settings = new ScanSettings.Builder().setScanMode(ScanSettings.SCAN_MODE_LOW_POWER).setReportDelay(1l)
                                  .build();
  
      Log.i(TAG,"The setting are "+settings.getReportDelayMillis());
      scanner.startScan(filters,settings,BLEScan);
  
  
  }
  </code></pre>
  
  <p>And here is the Scan Callback.</p>
  
  <pre><code>  private ScanCallback BLEScan = new ScanCallback() {
  
          @Override
          public void onBatchScanResults(List&lt;ScanResult&gt; results) {
  
              Log.i(TAG,"The batch result is "+results.size());
          }
  
          @Override
          public void onScanResult(int callbackType, ScanResult result) {
  
              Log.i(TAG,"******************************************");
              Log.i(TAG,"The scan result "+result);
              Log.i(TAG,"------------------------------------------");
          }
  
  
          @Override
          public void onScanFailed(int errorCode) {
              super.onScanFailed(errorCode);
          }
  
  
          }
  
  
      };
  </code></pre>
  
  <p>Please let me know if i'm doing anything wrong in the implementation here.
  And thank you.</p>