Java Code Examples for android.bluetooth.BluetoothDevice#DEVICE_TYPE_CLASSIC
The following examples show how to use
android.bluetooth.BluetoothDevice#DEVICE_TYPE_CLASSIC .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GattUtils.java From bitgatt with Mozilla Public License 2.0 | 6 votes |
/** * Will take an int from the Major Device Class and translate it into a string * * @param devType The device type numerical value * @return The string value */ public String getDevTypeDescription(int devType) { switch (devType) { case BluetoothDevice.DEVICE_TYPE_CLASSIC: return "CLASSIC"; case BluetoothDevice.DEVICE_TYPE_DUAL: return "DUAL"; case BluetoothDevice.DEVICE_TYPE_LE: return "LE"; case BluetoothDevice.DEVICE_TYPE_UNKNOWN: return "UNKNOWN"; default: return "UNKNOWN" + Integer.toString(devType); } }
Example 2
Source File: ParserUtils.java From Android-nRF-Beacon-for-Eddystone with BSD 3-Clause "New" or "Revised" License | 5 votes |
public static String deviceTypeTyString(final int type) { switch (type) { case BluetoothDevice.DEVICE_TYPE_CLASSIC: return "CLASSIC"; case BluetoothDevice.DEVICE_TYPE_DUAL: return "CLASSIC and BLE"; case BluetoothDevice.DEVICE_TYPE_LE: return "BLE only"; default: return "UNKNOWN"; } }