change Bluetooth Name - Android android.bluetooth

Android examples for android.bluetooth:Bluetooth

Description

change Bluetooth Name

Demo Code

import android.bluetooth.BluetoothAdapter;

public class Main{

    public static void changeBluetoothName(String name) {
        BluetoothAdapter mAdapter = BluetoothAdapter.getDefaultAdapter();
        mAdapter.setName(name);//from   w w w .j ava  2  s .c om
    }

}

Related Tutorials