title: isSelected method always returns false
body: <p>I'm using isSelected for a checkbox.
  The debugging shows that the method returns false nevermind if it's selected or not.</p>
  
  <p>The part from the xml :</p>
  
  <pre><code> &lt;CheckBox
          android:id="@+id/checkBox1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Watched"
          android:layout_margin="10sp" /&gt;
  </code></pre>
  
  <p>and the code:</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.editmovie);
  
          final DBHandler myMovies = new DBHandler(this);
          final EditText edname = (EditText)findViewById(R.id.editText1);
          final EditText eddetails = (EditText)findViewById(R.id.editText2);
          final EditText edurl = (EditText)findViewById(R.id.editText3);
          final CheckBox chwatched = (CheckBox)findViewById(R.id.checkBox1);
          Button btn = (Button)findViewById(R.id.button1);
          Intent intent = getIntent();
          getId = intent.getStringExtra("id");
          if (getId != null)
          {
              Cursor cursor = myMovies.getMovie(getId);
              cursor.moveToFirst();
              edname.setText(cursor.getString(1));
              eddetails.setText(cursor.getString(2));
              edurl.setText(cursor.getString(3));
              String iswatched = cursor.getString(4);
              if ((iswatched.equals("true")
                  chwatched.setSelected(true);
              else
                  chwatched.setSelected(false);
              flag=true;  
          }
  
          btn.setOnClickListener(new View.OnClickListener() {
  
              @Override
              public void onClick(View v) {
                  Intent intent = new Intent(EditMovie.this , MainActivity.class);
                  String name = edname.getText().toString();
                  String details = eddetails.getText().toString();
                  String url = edurl.getText().toString();        
                  boolean wt = chwatched.isSelected();
                  String watched = String.valueOf(wt);    
                  if (flag)
                      myMovies.updateMovie(new Movie(name, details, url, watched));
                  else
                      myMovies.addMovie(new Movie(name, details, url, watched));
  
                  startActivity(intent);
  
              }
          });
      }
  
  }
  </code></pre>
  
  <p>wt always recieves a false for some reason...</p>