title: Android spinner onItemSelected called multiple times after screen rotation
body: <p>I have a layout with three spinners. They differ in the option presented in the drop-down.<br>
  In my <code>onCreateView</code> I have a method to setup the spinners. Inside that method I have something like this:   </p>
  
  <pre><code>  mySpinner = (Spinner) view.findViewById(R.id.my_spinner);
    ArrayAdapter&lt;String&gt; mySpinner =
              new ArrayAdapter&lt;String&gt;(getActivity(), R.layout.background,
                      new ArrayList&lt;String&gt;(Arrays.asList(getResources().getStringArray(R.array.spinner_one_data))));
    mySpinner.setDropDownViewResource(R.layout.spinner_text);
    mySpinner.setAdapter(mySpinner);
    mySpinner.setOnItemSelectedListener(this);
  </code></pre>
  
  <p>As I said, my other two spinners are almost the same but with different options.</p>
  
  <p>I know that <code>onItemSelected</code> is called once for every spinner in a "first setup" so I have a flag to prevent this problem. With this flag solution, my spinners are working as expected.     </p>
  
  <p>The problem is when I select in each spinner an option and then rotate the screen. Now, <code>onItemSelected</code> is called 6 times instead the 3 times that I was expecting (I've set a flag to manage this situation of the 3 times calling).     </p>
  
  <p>Why Is it happening and hoe should I handle this?</p>