You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…hen scanning really started and when it stopped. User may switch the Bluetooth off and then turn it on when
application is running. This listener allows to track this events and react properly to them (eg. gray out device list). See ListBeaconsActivity to see sample code.
```java
beaconManager.setScanStatusListener(new BeaconManager.ScanStatusListener() {
@OverRide public void onScanStart() {
// Unlock UI
list.setEnabled(true);
list.setAlpha(1.0f);
}
@OverRide public void onScanStop() {
// Lock UI
list.setEnabled(false);
list.setAlpha(0.5f);
}
});
```
- Fixed (#134): java.lang.NullPointerException when using SDK on Emulator
When using the SDK on the standard Android emulator, you get a NullPointerException as BluetoothAdapter is not present.
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.bluetooth.BluetoothAdapter.isEnabled()' on a null object reference
The text was updated successfully, but these errors were encountered: