关于Android 4.2 以上系统(power键)电源键挂断电话修改方式
2015-05-29 15:32
330 查看
在根路径路径下:frameworks\base\core\java\android\provider\Settings.java
public static final int INCALL_POWER_BUTTON_BEH***IOR_DEFAULT= INCALL_POWER_BUTTON_BEH***IOR_SCREEN_OFF;的变量参数改为:
public static final int INCALL_POWER_BUTTON_BEH***IOR_DEFAULT = INCALL_POWER_BUTTON_BEH***IOR_HANGUP
其中:
public static final int INCALL_POWER_BUTTON_BEH***IOR_SCREEN_OFF = 0x1; 为按下电源键关闭屏幕(系统默认)
public static final int INCALL_POWER_BUTTON_BEH***IOR_HANGUP = 0x2; 为按下电源键通过过程中直接挂断电话
public static final int INCALL_POWER_BUTTON_BEH***IOR_DEFAULT= INCALL_POWER_BUTTON_BEH***IOR_SCREEN_OFF;的变量参数改为:
public static final int INCALL_POWER_BUTTON_BEH***IOR_DEFAULT = INCALL_POWER_BUTTON_BEH***IOR_HANGUP
其中:
public static final int INCALL_POWER_BUTTON_BEH***IOR_SCREEN_OFF = 0x1; 为按下电源键关闭屏幕(系统默认)
public static final int INCALL_POWER_BUTTON_BEH***IOR_HANGUP = 0x2; 为按下电源键通过过程中直接挂断电话
相关文章推荐
- Android--使用AudioRecord录音,并使用MediaPlayer播放的实例
- Android---50---使用Socket进行通信
- android开机动画启动流程
- Android JNI入门--jni头文件分析
- android:clipChildren 属性
- Android点击Button实现功能的几种方法总结
- Android Studio集成Genymotion
- Android Metrics
- Android实用代码大全
- Android jni库加载错误:java.lang.UnsatisfiedLinkError
- android访问NFC的SE
- Android Scroller、VelocityTracker
- Android动态加载包含so文件的jar的自定义view控件
- Android JNI开发生成.h头文件问题(转)
- android开发常用方法
- Android Studio Gradle基础
- dialog的弹出动画(最关键的是坐标系)
- 这么多年被第三方接入坑的那些事。。。关于md5签名和sha1证书的坑
- android Toast问题
- android关于onActivityResult提前调用的问题