public void stopScanning() { if (mBeaconManager != null && mBeaconManager.isBound(this)) mBeaconManager.unbind(this); }