Hi developers, here is the simplest instructions to use vibrator in Android application.
Then include this code where ever you want to use vibrator
First of all add above line in AndroidManifest.xml
Then include this code where ever you want to use vibrator
Vibrator v = (Vibrator) this.context.getSystemService(Context.VIBRATOR_SERVICE); // Vibrate for 500 milliseconds v.vibrate(500);
0 comments:
Post a Comment