private void createAndConnect(){
  Intent createConnection;
  createConnection=new Intent();
  createConnection.setClassName(clientConnections.getApplicationContext(),"org.eclipse.paho.android.service.sample.NewConnection");
  clientConnections.startActivityForResult(createConnection,ActivityConstants.connect);
}

private void createAndConnect ( ) { Intent createConnection ; createConnection = new Intent ( ) ; createConnection . setClassName ( clientConnections . getApplicationContext ( ) , "org.eclipse.paho.android.service.sample.NewConnection" ) ; clientConnections . startActivityForResult ( createConnection , ActivityConstants . connect ) ; }
create a new client and connect
