src/com/btwiz/library/BTSocket.java
public void connectAsync(final Context context, final IConnectListener connectListener) {
		Log.i("BTSocket", "connectAsync");
		new Thread() {
			public void run() {
				try {
					connect(context);
					connectListener.onSuccess();
				} catch (IOException e) {
					e.printStackTrace();
					connectListener.onError(e);
				}
			}
		}.start();		
	}
/**
	 * Asynchronously attempt to connect to a remote BT device (blocking).
	 * Note that this method will cancel a running discovery session, if any. 
	 */
Asynchronously attempt to connect to a remote BT device (blocking).
Note that this method will cancel a running discovery session, if any.
Asynchronously attempt to connect to a remote BT device ( blocking ) . Note that this method will cancel a running discovery session if any .
public void connectAsync(final Context context, final IConnectListener connectListener) {
		Log.i("BTSocket", "connectAsync");
		new Thread() {
			public void run() {
				try {
					connect(context);
					connectListener.onSuccess();
				} catch (IOException e) {
					e.printStackTrace();
					connectListener.onError(e);
				}
			}
		}.start();		
	}
public void connectAsync ( final Context context , final IConnectListener connectListener ) { Log . i ( "BTSocket" , "connectAsync" ) ; new Thread ( ) { public void run ( ) { try { connect ( context ) ; connectListener . onSuccess ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; connectListener . onError ( e ) ; } } } . start ( ) ; }
Asynchronously attempt to connect to a remote BT device (blocking).
Asynchronously attempt to connect to a remote BT device ( blocking ) .