Java tutorial
//package com.java2s; import android.bluetooth.BluetoothDevice; public class Main { public static String formatBondState(int bondState) { switch (bondState) { case BluetoothDevice.BOND_NONE: return "Not Bonded"; case BluetoothDevice.BOND_BONDING: return "Bonding"; case BluetoothDevice.BOND_BONDED: return "Bonded"; default: return "Unknown"; } } }