Skip to content

Instantly share code, notes, and snippets.

@kuraydev
Created January 21, 2016 14:02
Show Gist options
  • Select an option

  • Save kuraydev/d45db40af8c4378c3606 to your computer and use it in GitHub Desktop.

Select an option

Save kuraydev/d45db40af8c4378c3606 to your computer and use it in GitHub Desktop.
How to vibrate device on Android
Vibrator v = (Vibrator) this.getApplicationContext().getSystemService(Context.VIBRATOR_SERVICE);
// Vibrate for 1000 milliseconds
v.vibrate(1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment