android实现短按电源键关机的实现代码
打开文件:\frameworks\base\policy\src\com\android\internal\policy\impl\PhoneWindowManager.java 在代码: private static final int MSG_POWER_LONG_PRESS = 14;下面添加: private static final int MSG_POWER_SHUT_DOWN=15; 在: case MSG_POWER_LONG_PRESS: powerLongPress(); break; 下面添加: case MSG_POWER_SHUT_DOWN: mW
下载地址
用户评论