Check phone settings for tactile feedback

Is there any way to check if the user interface is activated or disabled in the settings of the Android phone? Although I think that tactile feedback would be useful for my application, I also understand that some people (including myself) usually prefer to disable gaplovy feedback. The closest I can find is http://developer.android.com/reference/android/provider/Settings.System.html#HAPTIC_FEEDBACK_ENABLED but I'm not sure if this is what I'm looking for or how to test it.

Thank you for any help you can provide.

+5
source share
1 answer

. , :

mContentResolver = this.getContentResolver();

int val = Settings.System.getInt(mContentResolver,
                 Settings.System.HAPTIC_FEEDBACK_ENABLED, 0);
mSettingEnabled = val != 0;
+6

All Articles