Java tutorial
//package com.java2s; //License from project: Open Source License import android.bluetooth.BluetoothDevice; public class Main { private static String convertBluetoothDevice(BluetoothDevice device) { String list; list = "Address: " + device.getAddress(); list += ", Name: " + device.getName(); list += ", Class: " + device.getBluetoothClass(); list += ", State: " + device.getBondState(); list += "\n\n"; return list; } }