Can you increase the vibration power on Android devices?

Is it possible to increase the vibration power of an alarm clock?

+6
source share
3 answers

obviously not

under android.os.Vibrator, you can set the template as well as the duration

vibrate(long[] pattern, int repeat) vibrate(long milliseconds) 

I suggest that different patterns can be used to β€œsimulate” stronger vibration. (on, off, on, off), not (on, off, off, off, on).

also a disharmonious picture may be more effective than a fixed-rhythm picture.

+9
source

The vibrator class does not allow this, you can set the duration.

+3
source

from API 26, you can change the strength by setting the amplitude of VibrationEffect

https://developer.android.com/reference/android/os/VibrationEffect.html

just create a Vibration Effect Effect = VibrationEffect.createOneShot (milliseconds, amplitude);

and then set the effect on the vibrator instance.

 vibrator.vibrate(effect); 

more details here

https://developer.android.com/reference/android/os/Vibrator.html#vibrate(android.os.VibrationEffect)

0
source

Source: https://habr.com/ru/post/906277/


All Articles