title: Spinner error on SetOnItemSelectedListener
body: <p>I have a spinner, and I do this </p>
  
  <pre><code> public class Settings extends Activity {
  
  String[] items = new String[] {"English", "Deutsch", "日語"};
   SharedPreferences prefs;
    SharedPreferences.Editor prefEditor;
   public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          setContentView(R.layout.settings);
          Spinner spinner = (Spinner) findViewById(R.id.spinner1);
          ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,
                  android.R.layout.simple_spinner_item, items);
      adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
      spinner.setAdapter(adapter);
   spinner.setOnItemSelectedListener (new OnItemSelectedListener()  {
  
  
      });
  </code></pre>
  
  <p>There's syntax error suggesting OnItemSelectedListener cannot resolved into type. The method setOnItemSelectedListener is not applicable </p>