public static boolean expectingBlukonDevice() { try { final ActiveBluetoothDevice btDevice = ActiveBluetoothDevice.first(); if (btDevice.name.startsWith("BLU")) return true; } catch (Exception e) { // } return false; }
public static boolean isblueReader() { final ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); try { return activeBluetoothDevice.name.contentEquals("blueReader"); } catch (NullPointerException e) { return false; } }
public static boolean isblueReader() { final ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); try { return activeBluetoothDevice.name.contentEquals("blueReader"); } catch (NullPointerException e) { return false; } }
public static boolean isTomato() { final ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if (activeBluetoothDevice == null || activeBluetoothDevice.name == null) { return false; } return activeBluetoothDevice.name.contentEquals("miaomiao"); }
public static boolean isblueReader() { final ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); try { return activeBluetoothDevice.name.contentEquals("blueReader"); } catch (NullPointerException e) { return false; } }
public static boolean expectingBlukonDevice() { try { final ActiveBluetoothDevice btDevice = ActiveBluetoothDevice.first(); if (btDevice.name.startsWith("BLU")) return true; } catch (Exception e) { // } return false; }
public static boolean isTomato() { final ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if (activeBluetoothDevice == null || activeBluetoothDevice.name == null) { return false; } return activeBluetoothDevice.name.contentEquals("miaomiao"); }
public static boolean isTomato() { final ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if (activeBluetoothDevice == null || activeBluetoothDevice.name == null) { return false; } return activeBluetoothDevice.name.contentEquals("miaomiao"); }
private void updateCurrentBgInfoForBtBasedWixel(DexCollectionType collector, TextView notificationText) { if ((android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN_MR2)) { notificationText.setText(R.string.unfortunately_andoird_version_no_blueooth_low_energy); return; } if (ActiveBluetoothDevice.first() == null) { notificationText.setText(R.string.first_use_menu_to_scan); return; } updateCurrentBgInfoCommon(collector, notificationText); }
public static synchronized void disconnected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = false; activeBluetoothDevice.save(); } }
public static synchronized void disconnected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = false; activeBluetoothDevice.save(); } }
public static synchronized void forget() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if (activeBluetoothDevice != null) { activeBluetoothDevice.delete(); } }
public static synchronized void connected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = true; activeBluetoothDevice.save(); } }
private void updateCurrentBgInfoForBtBasedWixel(DexCollectionType collector, TextView notificationText) { if ((android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.JELLY_BEAN_MR2)) { notificationText.setText(R.string.unfortunately_andoird_version_no_blueooth_low_energy); return; } if (ActiveBluetoothDevice.first() == null) { notificationText.setText(R.string.first_use_menu_to_scan); return; } updateCurrentBgInfoCommon(collector, notificationText); }
public static synchronized void forget() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if (activeBluetoothDevice != null) { activeBluetoothDevice.delete(); } }
public static synchronized void forget() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if (activeBluetoothDevice != null) { activeBluetoothDevice.delete(); } }
public static synchronized void connected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = true; activeBluetoothDevice.save(); } }
public static synchronized void connected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = true; activeBluetoothDevice.save(); } }
public static synchronized void disconnected() { ActiveBluetoothDevice activeBluetoothDevice = ActiveBluetoothDevice.first(); if(activeBluetoothDevice != null) { activeBluetoothDevice.connected = false; activeBluetoothDevice.save(); } }
public static void bluetoothScanIfNeeded() { if (ActiveBluetoothDevice.first() == null) { xdrip.getAppContext().startActivity(new Intent(xdrip.getAppContext(), BluetoothScan.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); } }