src/com/btwiz/library/BTWiz.java
public static void lookupDeviceAsync(Context context, IDeviceComparator comparator,  
			IDeviceLookupListener lookupListener, boolean discoverIfNeeded) {
		assertInitialized();
		
		// Before performing device discovery, its worth querying the set of 
		// paired devices to see if the desired device is already known
		
		BluetoothDevice device = findBondedDevice(context, comparator);  
		if (device != null) {
			lookupListener.onDeviceFound(device, false);
			return;
		}		
		
		if (discoverIfNeeded) {
			discoverBTDeviceAsync(context, comparator, lookupListener);
		}
		else {
			lookupListener.onDeviceNotFound(false); 			
		}
	}
/**
	 * Looks for a BT device passing IDeviceComparator.match()
	 * If a BondedDevice is found it is used.
	 * If no, and discoverIfNeeded==true, a discovery procedure is initiated
	 */
Looks for a BT device passing IDeviceComparator.match()
If a BondedDevice is found it is used.
If no, and discoverIfNeeded==true, a discovery procedure is initiated
Looks for a BT device passing IDeviceComparator . match () If a BondedDevice is found it is used . If no and discoverIfNeeded == true a discovery procedure is initiated
public static void lookupDeviceAsync(Context context, IDeviceComparator comparator,  
			IDeviceLookupListener lookupListener, boolean discoverIfNeeded) {
		assertInitialized();
		BluetoothDevice device = findBondedDevice(context, comparator);  
		if (device != null) {
			lookupListener.onDeviceFound(device, false);
			return;
		}		
		if (discoverIfNeeded) {
			discoverBTDeviceAsync(context, comparator, lookupListener);
		}
		else {
			lookupListener.onDeviceNotFound(false); 			
		}
	}
public static void lookupDeviceAsync ( Context context , IDeviceComparator comparator , IDeviceLookupListener lookupListener , boolean discoverIfNeeded ) { assertInitialized ( ) ; BluetoothDevice device = findBondedDevice ( context , comparator ) ; if ( device != null ) { lookupListener . onDeviceFound ( device , false ) ; return ; } if ( discoverIfNeeded ) { discoverBTDeviceAsync ( context , comparator , lookupListener ) ; } else { lookupListener . onDeviceNotFound ( false ) ; } }
Looks for a BT device passing IDeviceComparator.match()
 If a BondedDevice is found it is used.
Looks for a BT device passing IDeviceComparator . match () If a BondedDevice is found it is used .
// Before performing device discovery, its worth querying the set of  // paired devices to see if the desired device is already known