title: Android How do I correctly get the value from a Switch?
body: <p>I'm creating a <code>Android</code> application which uses a <a href="http://developer.android.com/reference/android/widget/Switch.html" rel="noreferrer">Switch</a>.<br>
  I'm trying to listen for changes and get the value when changed.<br>
  I have two questions when using switches:</p>
  
  <ol>
  <li>What <code>action listener</code> do I use?</li>
  <li>How do I get the the <code>switch</code> value?</li>
  </ol>