Hi,
I came across to making phone vibrate when user change the orientation from portrait to landscape or viceversa.
So How do we make phone vibrate programatically in android?
Code:
// vibration for 800 milliseconds ((Vibrator)getSystemService(VIBRATOR_SERVICE)).vibrate(800);
Required permission to add inside the AndroidManifest.xml file:
<uses-permission android:name="android.permission.VIBRATE" />