title: how to skip switch.setOnCheckedChangeListener when status is not updated by user
body: <p>since i am trying the switch first time (new to android) i am not sure how to handle this issue. i have a switch on an activity and an attached setOnCheckedChangeListener() to it. when the activity's oncreate is called i make an async call to database and depending on the values received i set the status of the switch on/off. Now the problem is that however i am setting the switch state to just show whats its current status on db and no user has changed it yet, still the listner function is called. i know that the code is working correctly but with the state changed listner i need something else to confirm that the state has been changed by the user . i think  onTouchEvent(MotionEvent event) can fill the purpose but do not know hot to use it in conjuction with switch.setOnCheckedChangeListener</p>
  
  <p>does anyone know of any better solution to it or atleast can help me telling how to use ontouch even with listner...</p>
  
  <pre><code>sw_recording_switch.setOnCheckedChangeListener(new OnCheckedChangeListener() {
          public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
     }}
  </code></pre>
  
  <p>thanks !!!</p>