Added click listener for ArrayAdapter; set up connection socket threads