Code example for BluetoothAdapter

Methods: getBondedDevices

0
			throw new Exception("Device Not Bluetooth Capable");
		} 
		if (!isBluetoothEnabled()) { 
			throw new Exception("Device Bluetooth Not Enabled.");
		} 
		return adapter.getBondedDevices();
	} 
 
	/** 
	 * Returns count of paired devices. 
	 */ 
	public int pairedDeviceCount() throws Exception { 
		if (!isBluetoothCapable()) { 
			throw new Exception("Device Not Bluetooth Capable");
		} 
		if (!isBluetoothEnabled()) { 
			throw new Exception("Device Bluetooth Not Enabled.");
		} 
		return adapter.getBondedDevices().size();
	} 
Contextual code suggestions in your IDE  Get Codota for Java