title: ListView with switch buttons, setChecked on start two switches, and save state of another
body: <p>I have two problems:</p>
  
  <p>What am I trying to achieve is a listview with switch button in each row and it's working fine, but I want to set on start 4th and 5th switch on True</p>
  
  <p>holder.s.setChecked(possition==4);</p>
  
  <p>holder.s.setChecked(possition==5);</p>
  
  <p>setting on true only the 5th, how to do this, give me any hint?</p>
  
  <p>Second problem: While scrolling my listview changing state of switch buttons, I've tried many many tutorials but with no luck, how to keep state of switch buttons? </p>
  
  <pre><code> @Override
  public View getView(final int position, View convertView, ViewGroup parent) {
      final ViewHolder holder;
      String pytanie = getItem(position);
  
  
      if (convertView==null){
          convertView = inflater.inflate(R.layout.cardio_row, null);
          holder = new ViewHolder();
          holder.question = (TextView) convertView.findViewById(R.id.question);
          holder.s = (Switch)convertView.findViewById(R.id.switch1);
          convertView.setTag(holder);
      }
      else{
          holder = (ViewHolder) convertView.getTag();
      }
      //Model_cardio question = getItem(position);
      holder.question.setText(pytanie);
      holder.s.setChecked(position == 4);
      holder.s.setChecked(position == 5);
      holder.s.setTag(position);
  
  
      return convertView;
  }
  </code></pre>
  
  <hr>
  
  <p>EDIT:
  I've added this, and want to store a state in some list</p>
  
  <pre><code>  holder.s.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
          @Override
          public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
  
          }
      });
  </code></pre>