This may help you:
http://android.konreu.com/developer-how-to/vibration-examples-for-android-phone-development/
Third passage "Example: Vibrate in a Given Pattern" and the fourth one:
Vibrator v = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);
long[] pattern = { 0, 200, 500 };
v.vibrate(pattern, 0);
Will start immediately (gap of zero milliseconds), then vibrate 200 ms,
then pause for 500 ms.
Am Montag, 2. Juli 2012 13:43:18 UTC+2 schrieb Ali:
>
> Dear All,
>
> We are looking for code to switch the Android device to Vibrate and back
> to normal for a given time. Can anyone share their findings/code
> snippets/APIs if used to achieve the same.
>
> Thanks for your time.
>
> Cheers,
> Ali
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en