title: How to repeat a perticular song for x number of times using MediaPlayer class
body: <p>my code is this</p>
  
  <pre><code>        bv.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              // TODO Auto-generated method stub
              if(mp.isPlaying()){
                  mp.pause();
                  bv.setImageResource(R.drawable.playzz);
              } else {
                  bv.setImageResource(R.drawable.pausezz);
                  for (int i=1; i&lt;=10 ; i++){
                  mp.start();
                  }
              }
          }
  </code></pre>
  
  <p>I wanted to repeat a song for only 10 time. i used for loop but the sound plays only one time and stops. Any idea how to do this??
  thanks in advance.</p>