title: android ViewSwitcher screen orientation change
body: <p>I have a <code>ViewSwitche</code>r in a <code>FragmentActivity</code> with in 2 layout files, one for each orientation. The <code>ViewSwitcher</code> is controlled by a <code>radio group</code>.  </p>
  
  <p>When I rotate the screen, everything behaves as I'd expect, the correct layout file is used to render the screen.  </p>
  
  <p>However, The radio group's <code>onCheckedChanged</code> event <strong>is fired when the screen rotates</strong>.<br> The listener for that looks like this (created in <code>onCreate</code>):</p>
  
  <pre><code>public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
          //snip
          radios.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
          @Override
          public void onCheckedChanged(RadioGroup radioGroup, int index) {
  
              viewSwitcher.showNext();
          }
          });
   }
  </code></pre>
  
  <p>How can I call <strong>viewSwitcher.showNext()</strong> in the <code>listener</code> without having it fire when the screen is rotated?</p>