title: Can’t add a sound effect without stopping a dice from rolling
body: <p>I’m programing an app the includes rolling a dice. I tried to add a sound effect of rolling dice. The sound effect works but ever since I added it the dice stopped rolling. What can I do?</p>
  
  <pre class="lang-java prettyprint-override"><code>    ...
      @Override
      public void onAnimationRepeat(Animation animation) {}
  
  });
  
  dice4.startAnimation(anim);
  
  final MediaPlayer sound = MediaPlayer.create(this, R.raw.shake_dice);
  Button roll = (Button) this.findViewById(R.id.btn_roll);
  
  roll.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View v) {
          sound.start();
      }
      ...
  }
  </code></pre>