public Connection(String clientHandle,String clientId,String host,int port,Context context,MqttAndroidClient client,boolean sslConnection){
  this.clientHandle=clientHandle;
  this.clientId=clientId;
  this.host=host;
  this.port=port;
  this.context=context;
  this.client=client;
  this.sslConnection=sslConnection;
  history=new ArrayList<String>();
  StringBuffer sb=new StringBuffer();
  sb.append("Client: ");
  sb.append(clientId);
  sb.append(" created");
  addAction(sb.toString());
}

public Connection ( String clientHandle , String clientId , String host , int port , Context context , MqttAndroidClient client , boolean sslConnection ) { this . clientHandle = clientHandle ; this . clientId = clientId ; this . host = host ; this . port = port ; this . context = context ; this . client = client ; this . sslConnection = sslConnection ; history = new ArrayList < String > ( ) ; StringBuffer sb = new StringBuffer ( ) ; sb . append ( "Client: " ) ; sb . append ( clientId ) ; sb . append ( " created" ) ; addAction ( sb . toString ( ) ) ; }
creates a connection object with the server information and the client hand which is the reference used to pass the client around activities
