Example usage for android.bluetooth BluetoothDevice DEVICE_TYPE_UNKNOWN

List of usage examples for android.bluetooth BluetoothDevice DEVICE_TYPE_UNKNOWN

Introduction

In this page you can find the example usage for android.bluetooth BluetoothDevice DEVICE_TYPE_UNKNOWN.

Prototype

int DEVICE_TYPE_UNKNOWN

To view the source code for android.bluetooth BluetoothDevice DEVICE_TYPE_UNKNOWN.

Click Source Link

Document

Bluetooth device type, Unknown

Usage

From source file:Main.java

public static String formatDeviceType(int type) {
    switch (type) {
    case BluetoothDevice.DEVICE_TYPE_CLASSIC:
        return "Bluetooth Classic";
    case BluetoothDevice.DEVICE_TYPE_LE:
        return "Low Energy";
    case BluetoothDevice.DEVICE_TYPE_DUAL:
        return "Dual";
    case BluetoothDevice.DEVICE_TYPE_UNKNOWN:
    default:/*from w  w  w  .jav a2s .c o m*/
        return "Unknown";
    }
}