Friday, February 10, 2012

How to vibrate the phone?

You can vibrate the phone for a specified duration like so: 
(Vibrator) getSystemService(Context.VIBRATOR_SERVICE).vibrate(milliseconds);

No comments:

Post a Comment