Vibration pattern for incorrect input (Android)

I know how to create a vibrating template, for example:

Vibrator vibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE); long pattern[] = new long[] {0, 200, 100, 200}; vibrator.vibrate(pattern, -1); 

But I do not know which template will associate the "wrong input". Are there any recommendations or predefined patterns?

EDIT: Looks like my question is a bit confusing. I mean, there are sounds that can be defined as success or failure, they are quite common. But are there any vibration patterns that can be used for success or failure that most people will understand?

+6
source share
4 answers

not to do. No other Android apps do this. Use a visual indication instead.

+2
source

I hope this answer comes better late than never !; -)

I don’t know of any specific standard in android, however, it seems that in other areas of non-visual communication, the repeating patterns of 3 are usually used to indicate distress or anxiety. For example, the Morse code for SOS is a repeating triple pattern. When I was diving in SCUBA, I was taught how to use my tank in Model 3, if I wanted to get urgent attention, and when you go to a controlled fist, I was instructed to carry a whistle many times and signal samples of 3 for a long time if I wanted to point out a disaster.

Instead of a recognized standard, if you feel you need to ensure success or failure that uses vibration, I would suggest quick single vibration, if you really want to indicate success, and a quick triple vibration pattern to indicate failure. I would also use this to supplement the visual signal, and, of course, give the user the option to turn off vibration if they so wish, as this will certainly contribute to additional battery failure.

Greetings

+7
source

I am not aware of any recommendations for templates, especially not for incorrect input. Usually vibration is used only to convey a notification or the fact that something has been pressed. For this, short short vibrations are usually used.

Complex patterns of vibrations are likely to be useful for games and the like. If you want to warn the user about incorrect input, I suggest using Toast instead.

+1
source
 Vibrator v; v = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE); long[] p = { 50, 100, 50, 100 }; v.vibrate(p, -1); 
-2
source

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


All Articles