I tried to vibrate my application with the default vibration settings of the device, but I can not do it with Vibration. I tried the code below.
case AudioManager.RINGER_MODE_VIBRATE: Vibrator vibrator = (Vibrator) this.context.getSystemService(Context.VIBRATOR_SERVICE); long[] pattern = { 0, 1000, 2000, 3000, 2000 }; vibrator.vibrate(pattern, 0);
Is there a way to vibrate the device with the default settings. I used the template, but I need the default vibration settings for incoming calls.
Or how can I get a device vibration pattern?
Thanks.
source share