"android vibrate is deprecated. how to use vibrationeffect in android>= api 26?" Code Answer

3

amplitude is an int value. its the strength of the vibration. this must be a value between 1 and 255, or default_amplitude which is -1.

you can use it as vibrationeffect.default_amplitude

more details here

By Chris L on July 6 2022

Answers related to “android vibrate is deprecated. how to use vibrationeffect in android>= api 26?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.