title: Scanning of Bluetooth Low Energy Fails
body: <p>I am currently developing an application that will use Bluetooth Low Energy.</p>
  
  <p>I am using the following link,</p>
  
  <p><a href="http://developer.android.com/samples/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/DeviceScanActivity.html" rel="nofollow">http://developer.android.com/samples/BluetoothLeGatt/src/com.example.android.bluetoothlegatt/DeviceScanActivity.html</a></p>
  
  <p>I am not able to scan the surrounding BLE devices.</p>
  
  <p>To scan device,</p>
  
  <pre><code>mBluetoothAdapter.startLeScan(mLeScanCallback); 
  
  private BluetoothAdapter.LeScanCallback mLeScanCallback = new BluetoothAdapter.LeScanCallback() 
      {
  
          @Override
          public void onLeScan(final BluetoothDevice device, int rssi,byte[] scanRecord) 
          {
  
              runOnUiThread(new Runnable() {
                  @Override
                  public void run() 
                  {
  
                      mLeDeviceListAdapter.addDevice(device);
  
                      mLeDeviceListAdapter.notifyDataSetChanged();
  
                  }
              });
          }
      };
  </code></pre>