+ 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"/>
5 Respuestas
+ 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 ☺
+ 9
What's your question?
+ 9
@MR Programmer Yeah, it's just an example not a question.
+ 3
@Tashi he is just giving a solution that how can we vibrate ou phone.
it comes on Android development.
+ 1
welcome @Paola