List of usage examples for android.content.pm PackageManager FEATURE_BLUETOOTH_LE
String FEATURE_BLUETOOTH_LE
To view the source code for android.content.pm PackageManager FEATURE_BLUETOOTH_LE.
Click Source Link
From source file:Main.java
public static boolean checkBLE(Context context) { return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE); }
From source file:Main.java
public static boolean isBLESupported(Context context) { return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE); }
From source file:Main.java
public static boolean isBleSupported(Context context) { if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { return true; } else {/*from w w w . java 2s . c o m*/ return false; } }
From source file:Main.java
public static boolean isBleSupported(Context context) { return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE); }
From source file:Main.java
public static boolean isSupportBle(Context context) { if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) { return true; }//from w w w . j ava2s . c o m return false; }
From source file:Main.java
public static boolean supportsBluetoothLE(Context context) { return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE); }
From source file:Main.java
/** * if device phone supports the ble/*www . jav a 2s. c om*/ */ public static boolean isSupportBle(Context context) { if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) { System.out.println("CAN NOT SUPPORT BLE"); return false; } else { return true; } }
From source file:Main.java
public static boolean isBLESupportedOnDevice(Context context) { return Build.VERSION.SDK_INT >= 19 && context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE); }
From source file:Main.java
public static boolean hasBluetoothLE(Context context) { return (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2 && context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)); }
From source file:Main.java
/** * Check whether device support ble./* w ww . ja v a2s. co m*/ * * @param context Activity context * @return whether device support ble */ public static boolean CheckBleSupport(Context context) { return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE); }