title: How to vibrate device n number of times through programming in android?
body: <p>can anyone tell me how to vibrate same patter 5 times like this my pattern </p>
  
  <p><code>long[] pattern = { 0, 200, 500 };</code> </p>
  
  <p>i want this pattern to repeat 5 times </p>
  
  <pre><code>Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
  vibrator.vibrate(pattern , 5);
  </code></pre>