Vibrate with a given pattern.
Pass in an array of ints that are the times at which to turn on or off
the vibrator. The first one is how long to wait before turning it on,
and then after that it alternates. If you want to repeat, pass the
index into the pattern at which to start the repeat.
// catch this here because the server will do nothing. pattern may
// not be null, let that be checked, because the server will drop it
// anyway
if (repeat < pattern.length) {
try {
mService.vibratePattern(pattern, repeat, new Binder());
} catch (RemoteException e) {
}
} else {
throw new ArrayIndexOutOfBoundsException();
}