コード例 #1
0
 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");
 }
コード例 #2
0
 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");
 }