1. 首页
  2. 数据库
  3. 其它
  4. android实现短按电源键关机的实现代码

android实现短按电源键关机的实现代码

上传者: 2021-02-01 14:59:51上传 PDF文件 29.67KB 热度 12次
打开文件:\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
下载地址
用户评论