当用户不执行任何操作时,应用程序中的屏幕不会关闭
我已经开发了游戏。在游戏主屏幕上,当用户不执行任何操作时,手机不会关闭。我的实施中可能存在什么问题?
我可以提供代码,但我不知道什么可以帮助识别这个问题。
I have developed the game. On the main game screen, when user doing nothing, phone is not turning off. What could be wrong in my implementation?
I can provide code, but I don't know what could help to identify this problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在您的清单中验证您的活动是否设置了 WAKE_LOCK 权限;)
Verify at your manifest if you activity have the WAKE_LOCK permission set ;)