Indicator to indicate vibration on the phone
<p>Currently I am developing a app which would vibrate morse code.</p>

<p>I am using this code to vibrate the pattern:</p>

<pre><code>int dot = 100;
int dash = 220;
int short_gap = 200;
int medium_gap = 700;
s = new long[] {0, dot, short_gap, dash, medium_gap}
Vibrator vibrator;
vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);       
vibrator.vibrate(s, -1);
</code></pre>

<p>How do I add an indicator to indicate if my application is vibrating a dot or a dash? </p>

<p>I know I can use a for loop to transverse the <code>long[]</code> and then use a if else statement to change a textview background colour to indicate a change in the pattern. But how do I get the for loop to keep within the vibration ms for each change? </p>
