src/com/btwiz/library/BTWiz.java
public static BluetoothDevice findBondedDevice(Context context, IDeviceComparator comparator) {
		Set<BluetoothDevice> pairedDevices = getAllBondedDevices(context);
		if (pairedDevices==null) {
			return null;
		}
		for (BluetoothDevice device: pairedDevices) {
			if (comparator.match(device)) {
				return device;
			}
		}
		return null;
	}
/**
	 * Gets a bonded BT device according to the IDeviceComparator criteria   
	 */
Gets a bonded BT device according to the IDeviceComparator criteria
Gets a bonded BT device according to the IDeviceComparator criteria
public static BluetoothDevice findBondedDevice(Context context, IDeviceComparator comparator) {
		Set<BluetoothDevice> pairedDevices = getAllBondedDevices(context);
		if (pairedDevices==null) {
			return null;
		}
		for (BluetoothDevice device: pairedDevices) {
			if (comparator.match(device)) {
				return device;
			}
		}
		return null;
	}
public static BluetoothDevice findBondedDevice ( Context context , IDeviceComparator comparator ) { Set < BluetoothDevice > pairedDevices = getAllBondedDevices ( context ) ; if ( pairedDevices == null ) { return null ; } for ( BluetoothDevice device : pairedDevices ) { if ( comparator . match ( device ) ) { return device ; } } return null ; }
Gets a bonded BT device according to the IDeviceComparator criteria
Gets a bonded BT device according to the IDeviceComparator criteria