0
当设备进入睡眠状态时,我的电晕应用程序不工作。没有按钮没有响应继续我的游戏。 我使用以下代码来跟踪系统事件 。当屏幕关闭它打印applicationSuspend但屏幕上它永远不会打印“applicationResume” [使用过Android ADB日食显示打印消息]从休眠状态唤醒或暂停状态后,我的应用程序无法工作
local function onSystemEvent(event)
if(event.type == "applicationExit") then
print("applicationExit")
db:close()
elseif event.type == "applicationSuspend" then
print("applicationSuspend")
elseif event.type == "applicationResume" then
print("applicationResume")
elseif event.type == "applicationStart" then
print("applicationStart")
end
end
任何解决方案之后?
请包括代码“周围”,如果。例如,它在什么功能 – kikito
@kikito我将它包含在main.lua中...没有特殊功能需要.. \ – vnshetty
@kikito我编辑了我的任务 – vnshetty