Use different vibrations for the vibrator

Hello, I would like to know if it is possible to make the phone vibrate in different ways (by varying the intensity for example).

Thanks in advance,
Nico

Try

Taken from the extensions directory App Inventor Extensions | Pura Vida Apps

Taifun

Thanks but it doesn't allow you to vary the intensity of the vibrations...

Nico

Looks like your would need to write a more detailed extension:

https://developer.android.com/reference/android/os/Vibrator

If by intensity you mean the strength then you can not do that. It is a property of the vibromotor. You have to change, manipulate the balance weight on it. Maybe if it would be a variable speed motor, but I do not think so.

You can try it. It will work with android 8 or newer, sdk 26+.

Vibro.aia (7.4 KB)

Hi Patryk,

Just a suggestion, but in my opinion, you should change the name Amplitude to Frequency or Tone or something similar. Amplitude can not be changed without changing balance weight. Changing frequency does not change amplitude. Well maybe at resonant frequency.

It's an android feature name, so you have to suggest it to Google. You can find this in the Vibrator class linked above TIMAI2.

Maybe I should :rofl: