title: the method put boolean in type bundle is not applicable for radio buttons
body: <p>i need to save the instance of my application when the user rotates the screen.I have used toggle button <strong>"inst"</strong> , image button <strong>"play"</strong> and radio button <strong>"sp"</strong>.This is my code:</p>
  
  <pre><code>public void onSaveInstanceState(Bundle outState)
          {
           outState.putBoolean("play",play);
           outState.putBoolean("inst", inst);
           outState.putBoolean("sp",sp);         /* shows the error "the method put boolean in 
                                                   type bundle is not applicable for radio buttons"*/          
           super.onSaveInstanceState(outState);
  
          }
  </code></pre>
  
  <p>what are we supposed to use for radio buttons then? When i googled i got results saying that we have to use preference activity.Then in my case, i have to change all the elements in my current layout.Any other solution would be of much help.</p>