The BluetoothAdapter class's getBoundedDevices() method returns a set containing a list of all paired or bounded bluetooth devices. In this case, we're checking to see if Bluetooth is turned off, and if it is, we're turning it on and listing all of the associated devices.