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.
startActivity(new Intent(Settings.ACTION_SETTINGS));
以上代码用于通过 Intent 调用设置
我需要在组合键中映射该意图..
例如
我需要按 a+s+d 来调用设置意图
在您自己的一项活动中,覆盖诸如 之类的方法onKeyDown(),检查KeyEvent以查看它是否匹配,如果匹配则启动该活动。
onKeyDown()
KeyEvent
如果您尝试在全球范围内执行此操作,那么 Android SDK 无法做到这一点。
我无法理解这是怎么发生的。在我的页面上显示源代码是这样开始的——是的,那是 html 的开始,我在 Chrome 和 Safari 中仔细检查了它......
</div> </div> </div> <!DOCTYPE html> <html> <head> <