title: Spinner detecting close event
body: <p>I have this spinner with a list of music items. Upon clicking the music items, music will play and stop when user selects any music items. </p>
  
  <p>The question is how to stop the music if user presses the back button?</p>
  
  <p>I have tried to find methods that is called when spinner is closed. Can't seem to find any though. Am I missing anything obvious?</p>
  
  <p>Please help!! 
  thanks</p>
  
  <p>If it matters, my spinner is called from a fragment.</p>
  
  <pre><code>    musicSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {
  
          @Override
          public void onItemSelected(AdapterView&lt;?&gt; av, View v, int i, long l) {
                  Log.v("music spinner","Item selected");
              if (mp.isPlaying())
                  mp.stop();
          }
  
          @Override
          public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
                  Log.v("music spinner","Item not selected");
          }
      });
  </code></pre>