配置android手机下方的三个按键震动

frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java


在PHONEwindowmanager.java里
interceptKeyBeforeQueueing()方法里加上
if (down && ((keyCode == KeyEvent.KEYCODE_HOME)||(keyCode == KeyEvent.KEYCODE_MENU)||(keyCode == KeyEvent.KEYCODE_BACK))){
            performHapticFeedbackLw(null, HapticFeedbackConstants.VIRTUAL_KEY, false);
        }

转自:http://www.eoeandroid.com/thread-203628-1-1.html

你可能感兴趣的:(android)