1 year ago

#374569

test-img

Oke Uwechue

How to programmatically enable/disable haptic feedback in System Settings in a device running SDK API level 30+?

Since as of API level 30, System.HAPTIC_FEEDBACK_ENABLED has been marked as deprecated, how would one programmatically enable/disable haptic feedback in System Settings(i.e. globally) on a device running SDK API level 30+ using the VibrationAttributes-related APIs?

android

android-settings

android-vibration

haptic-feedback

0 Answers

Your Answer

Accepted video resources