How can I programmatically read the system setting for the virtual keyboard? I want my app buttons to behave like it is set in the system settings for the virtual keyboard (beep, vibrate or nothing).
You should use performHapticFeedback
for it. Do not forget to enable it for your views in layout xml.
View.performHapticFeedback
Use stock Haptic feedback
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With