title: Android BLE Scanner Permissions Exception
body: <p>I'm, having trouble getting scan results back from the BLE scanner.  I have the proper permissions (ACCESS_COARSE_LOCATION) in my AndroidManifest.xml as detailed below but get an exception that indicates I need the permissions that I have.  Not surprisingly, the scanner call back is never invoked.</p>
  
  <pre><code>W/Binder: Caught a RuntimeException from the binder stub implementation.
            java.lang.SecurityException: Need ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission to get scan results.  I'm not sure why the exception is thrown but I certianly DON'T get scan call backs.
  
  
  &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
  &lt;uses-permission android:name="android.permission.BLUETOOTH" /&gt;
  &lt;uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /&gt;
  
  
  ScanCallback btScanCallback = new ScanCallback()
  {
      @Override
      public void onScanResult(int callbackType, final ScanResult result)
      {
          BluetoothDevice btDevice = result.getDevice();
          Log.d(LOGTAG, "Found BLE device: " + btDevice.getName());
  
  
          // Remove the device from the scanner select view if its there already
          for( int i=0; i&lt;btDeviceNameList.size(); i++)
          {
              String aDevice = btDeviceNameList.get(i);
  
              if(aDevice.equalsIgnoreCase(btDevice.getName()))
              {
                  btDeviceNameList.remove(i);
                  btDeviceList.remove(i);
                  break;
              }
         }
  
          // Add the device to the scanner select view
          btDeviceList.add(btDevice);
          btDeviceNameList.add(btDevice.getName());
  
          btListAdapter.notifyDataSetChanged();
      }
  
  
      @Override
      public void onScanFailed(int errorCode)
      {
          Log.e(LOGTAG, "BT scan error: " + errorCode);
      }
  };
  </code></pre>