Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一项活动要在手机进入睡眠状态时显示。但是,当我按下音量按钮或相机按钮时,手机会唤醒。
我尝试使用 dispatchKeyEvent(KeyEvent event) 方法,但它并不能阻止手机唤醒。
我还能如何禁用该功能?
谢谢,
我听说唤醒行为是在框架级别定义的 - 在 policy.jar 或其他地方。因此,您的问题将需要修改系统本身。还要检查http://forum.samdroid.net/f42/disable-every-button-wake-up-2124/