Code example for BluetoothAdapter

Methods: getBondedDevicesisEnabled

0
 
	public static Set<BluetoothDevice> getPairedDevicesList() {
		if (D)
			if(D)Log.e(TAG, "++ getPairedDevicesList ++");
 
		if (!btAdapter.isEnabled()) {
			if (D)
				if(D)Log.e(TAG, "adapter not enabled");
		} else { 
			pairedDevices = btAdapter.getBondedDevices();
		} 
		return pairedDevices;
	} 
 
	/** 
	 * This method searches for a BluetoothDevice that matches the specified 
	 * name. It will only search for the device among paired devices. 
	 *  
	 * @param name 
	 *            The name of the bluetooth device