Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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";
        }

    }
}