Let's make device vibrate:
public void startVibration(Context context){
Vibrator vibr = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
vibr.vibrate(600);
}
Permission:
<uses-permission android:name="android.permission.VIBRATE" />
No comments:
Post a Comment