Android How do I correctly get the value from a Switch?
<p>I'm creating a Android application which uses a <a href="http://developer.android.com/reference/android/widget/Switch.html" rel="nofollow">Switch</a>. I'm trying to listen for changes and get the value when changed. 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>
