src/com/btwiz/library/BTSocket.java
public void connect(Context context) throws IOException {
		BTWiz.cancelDiscovery(context); //!
		Log.i("BTSocket", "connecting.."); 		 		
		boolean success = false;
		try { 
			BTWiz.markConnecting(true);
			socket.connect();
			success = true;
		}
		finally {
			BTWiz.markConnecting(false); 
			if (success) {
				Log.i("BTSocket", "connect success");				
			}
			else {
				Log.e("BTSocket", "connect failure");				
			}
		}
	}
/**
	 * Attempt to connect to a remote BT device (blocking).
	 * Note that this method will cancel a running discovery session, if any. 
	 */
Attempt to connect to a remote BT device (blocking).
Note that this method will cancel a running discovery session, if any.
Attempt to connect to a remote BT device ( blocking ) . Note that this method will cancel a running discovery session if any .
public void connect(Context context) throws IOException {
		BTWiz.cancelDiscovery(context); 
		Log.i("BTSocket", "connecting.."); 		 		
		boolean success = false;
		try { 
			BTWiz.markConnecting(true);
			socket.connect();
			success = true;
		}
		finally {
			BTWiz.markConnecting(false); 
			if (success) {
				Log.i("BTSocket", "connect success");				
			}
			else {
				Log.e("BTSocket", "connect failure");				
			}
		}
	}
public void connect ( Context context ) throws IOException { BTWiz . cancelDiscovery ( context ) ; Log . i ( "BTSocket" , "connecting.." ) ; boolean success = false ; try { BTWiz . markConnecting ( true ) ; socket . connect ( ) ; success = true ; } finally { BTWiz . markConnecting ( false ) ; if ( success ) { Log . i ( "BTSocket" , "connect success" ) ; } else { Log . e ( "BTSocket" , "connect failure" ) ; } } }
Attempt to connect to a remote BT device (blocking).
Attempt to connect to a remote BT device ( blocking ) .
//!