int anInt = Settings.System.getInt(AppContext.getContentResolver(),Settings.System.HAPTIC_FEEDBACK_ENABLED, 0);
mDefaultMode.setTactile(anInt==1);
==1 是开启 ==0 是关闭
微信扫一扫
int anInt = Settings.System.getInt(AppContext.getContentResolver(),Settings.System.HAPTIC_FEEDBACK_ENABLED, 0);
mDefaultMode.setTactile(anInt==1);
==1 是开启 ==0 是关闭
相关推荐