List of usage examples for android.bluetooth BluetoothAdapter setName
@RequiresPermission(Manifest.permission.BLUETOOTH_ADMIN) public boolean setName(String name)
From source file:Main.java
public static void changeBluetoothName(String name) { BluetoothAdapter mAdapter = BluetoothAdapter.getDefaultAdapter(); mAdapter.setName(name); }
From source file:Main.java
public static boolean setBluetoothDeviceName(String name) { if (TextUtils.isEmpty(name)) { return false; }/*from w w w . ja v a2 s. c om*/ BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter(); return adapter.setName(name); }