How to get remote devices custom Bluetooth name in Android?
<p>I'd like to retrieve a custom name of remote Bluetooth device in Android.
I'm talking about the name that is found in phones' settings under Settings/Bluetooth and paired device.</p>

<p>E.g. I have a remote Bluetooth device that has name "DoorControl". Under Settings->Bluetooth->paired devices, I have renamed the device as "CTRL". Now I'd like to access the defined name so I can display it for the user.</p>

<p>I'd like to display that name in list of Bluetooth devices.</p>

<pre><code>knownDevicesAdapter.clear();
knownDevicesArray = mBluetoothAdapter.getBondedDevices();

if (knownDevicesArray.size() &gt; 0) {
    for (BluetoothDevice device : knownDevicesArray) {
        if (device.getName().contains("Door")) {
            knownDevicesAdapter.add(device.getName() 
                    + /*HERE I WANT THE CUSTOM NAME TO SHOW*/ "\n" 
                    + device.getAddress());
        }
    }
}
</code></pre>

<p>device.getName(), returns only the full original name of the device, what is in this case "DoorControl".</p>

<p>This would be necessary since there can be 4 devices with the name DoorControl. Only way to tell the difference between them is by their address. But for the user friendly approach it would be much easier to let them rename the device in Bluetooth settings and just show that name as "nickname" for the device.</p>

<p>Is there way to access the custom name, so I don't have to write the full "rename->save the name for certain address->load the name"-cycle in my own application?</p>

<p>EDIT:</p>

<p>After searching for a while, I decided to write renaming ability in my own application, since I couldn't find out a way to get the names otherwise.</p>

<p>If anyone is reading this and knows the answer to my original question, I'd be happy to know it.</p>