Happy New Year 2016

Happy New Year 2016

Implement Vibrator In Android Application

Hi developers, here is the simplest instructions to use vibrator in Android application.


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);

Share on Google Plus

About Shivam Satija

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment