I want to repeat sound and vibration with the repeat of an animation. I've created a mediaplayer object and starting it in onAnimationRepeat
public void onAnimationRepeat(Animation animation) {
// TODO Auto-generated method stub
mpDot.start();
vibrator.vibrate(40L);
}
But nothing is happening. Neither the sound is repeating nor the vibration also
onAnimationStart
I've called mpDot.start()
too... So whenever animation is started sound also starts and stops with it. But it doesn't repeat. Why?
Can anybody help.