+ 8

How to make system vibrate

Try: import android.os.Vibrator; ... Vibrator v = (Vibrator) this.context.getSystemService(Context.VIBRATOR_SERVICE); // Vibrate for 500 milliseconds v.vibrate(500); Note: Don't forget to include permission in AndroidManifest.xml file: <uses-permission android:name="android.permission.VIBRATE"/>

10th May 2017, 4:25 PM
Gourav Singh
Gourav Singh - avatar
5 Answers
+ 10
Thanks for your contribution @Gourav_Singh Don't forget to reference original sources: http://stackoverflow.com/questions/13950338/how-to-make-an-android-device-vibrate â˜ș
11th May 2017, 6:47 AM
Pao
Pao - avatar
+ 9
What's your question?
10th May 2017, 5:31 PM
Tashi N
Tashi N - avatar
+ 9
@MR Programmer Yeah, it's just an example not a question.
10th May 2017, 6:18 PM
Tashi N
Tashi N - avatar
+ 3
@Tashi he is just giving a solution that how can we vibrate ou phone. it comes on Android development.
10th May 2017, 6:13 PM
MR Programmer
MR Programmer - avatar
+ 1
welcome @Paola
11th May 2017, 12:13 PM
Gourav Singh
Gourav Singh - avatar