Java tutorial
//package com.java2s; import android.bluetooth.BluetoothDevice; public class Main { public static String getDeviceInfoText(BluetoothDevice device, int rssi, byte[] scanRecord) { return new StringBuilder().append("Name: ").append(device.getName()).toString(); } }