code: private void initializeListView() {
      placesListView.setAdapter(placesAdapter);
      placesListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {
          lastLoadedPlacePosition = position;
          showPlace(position);
        }
      });
    }
docs: Initialize places ListView using placesAdapter and configure OnItemClickListener.