title: setOnItemSelectedListener in AdapterView Cannot be applied
body: <p>I have an activity with 2 Spinners on it. </p>
  
  <p>In the onCreate I declare the Spinners:</p>
  
  <pre><code>Spinner spinPhotographer = (Spinner) findViewById(R.id.spinPhotographer);
  
  Spinner spinLocation = (Spinner) findViewById(R.id.spinLocation);
  </code></pre>
  
  <p>I then call a void sub and pass the method the filename of a text file I want to use to populate the Spinners. Each Spinner has it's own text file.</p>
  
  <pre><code>populateSpinner("Photographers");
  
  populateSpinner("Locations");
  </code></pre>
  
  <p>Here is the method to read the text files and populate the respective Spinner:</p>
  
  <pre><code>private void populateSpinner(String spinnerName) {
      String fileName = ("/sdcard/guestlink/" + spinnerName + ".txt");
      String line;
      ArrayList&lt;String&gt; names = new ArrayList&lt;String&gt;();
  
      //Read the lines of text into an ArrayList
      try {
          BufferedReader input = new BufferedReader(new FileReader(fileName));
  
      if (!input.ready()) {
              throw new IOException();
          }
          while ((line = input.readLine()) != null) {
              names.add(line);
          }
          input.close();
          //Sort the list alphabetically
          Collections.sort(names);
          //Build the ArrayAdapter
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter(this, 
  android.R.layout.simple_spinner_dropdown_item, names);
  
          switch (spinnerName) {
              case "Photographers": {
                  //Get handle for spinner object
                  Spinner spinPhotographers = (Spinner) 
  findViewById(R.id.spinPhotographer);
                  //Populate the spinner from the array
                  spinPhotographers.setAdapter(adapter);
                  spinPhotographers.setOnItemSelectedListener(this);
              }
              case "Locations":{
                  //Get handle for spinner object
                  Spinner spinLocations = (Spinner) 
  findViewById(R.id.spinLocation);
                  //Populate the spinner from the array
                  spinLocations.setAdapter(adapter);
                  spinLocations.setBackgroundColor(Color.WHITE);
                  spinLocations.setOnItemSelectedListener(this);
              }
          }
      } catch (IOException ex) {
          System.out.println(ex);
          Utilities.writeToLog(ex.toString(), logFile);
      }
  
  
  }
  </code></pre>
  
  <p>In the lines spinxxx.setOnItemSelectedListener(this); I get the following error: "setOnItemSelectedListener in AdapterView Cannot be applied" I have tried putting the .setOnItem... in the onCreate area. I just don't get it. The Spinners all populate correctly from the text files.</p>
  
  <p>I also made this method to react to the onItemSelected. My plan is to use arg0 to find out which Spinner selected an item.</p>
  
  <pre><code>public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1, int arg2, long 
  arg3) {
      switch(arg0.getId()){
          case R.id.spinPhotographer:
              break;
          case R.id.spinLocation;
              break;
          case R.id.spinGuestidLength:
              break;
      }
  }
  </code></pre>