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.
每次屏幕关闭时,Service我的应用程序中的 a 都会启动一个Activity. 音量减小和增大键的Activity覆盖onKeyDown方法。现在的问题是当我按下这些按钮(并且屏幕关闭)时,屏幕打开,我不想要这个。如何防止屏幕打开并仍然收到按键?
Service
Activity
onKeyDown