private void showDeviceScanningDialog() { final ScannerFragmentAutoSelect dialog = ScannerFragmentAutoSelect.getInstance( UUID.fromString(SentekUUID.Probe_DFU), mbluetoothLeDevice.getAddress(), "Searching Probe DFU...", false); // Device that is advertising directly does not have the GENERAL_DISCOVERABLE // nor LIMITED_DISCOVERABLE flag set. dialog.show(getSupportFragmentManager(), "scan_fragment"); }
private void showDeviceScanningDialogAndSelectProbe(int mBleDeviceType) { // startDFUActivity(SentekApplication.mdevice); String trimDeviceName = "Probe"; if (SentekApplication.mdevice != null) trimDeviceName = SentekApplication.mdevice.getName().trim(); String msg = "Searching " + trimDeviceName + " for Connect..."; final ScannerFragmentAutoSelect dialog = ScannerFragmentAutoSelect.getInstance( UUID.fromString(SentekUUID.Probe), mbluetoothLeDevice.getAddress(), msg, true); // Device that is advertising directly does not have the GENERAL_DISCOVERABLE nor // LIMITED_DISCOVERABLE flag set. dialog.show(getSupportFragmentManager(), "scan_fragment"); }