Detect Difference Between 'Screen Lock' and 'Switching' App Suspension

Is there a way/hack to detect the type of suspension of an App? I’m using system events and wonder if perhaps there is some difference in the type of suspension, like a delay, you could use as a trigger(?)

local function onSystemEvent( event ) if (event.type == "applicationStart") then print("APP STARTED") -- Runtime:addEventListener( "accelerometer", onAccelerate ) -- accelerometer elseif (event.type == "applicationExit") then print("APP EXIT") elseif ( event.type == "applicationSuspend" ) then print("APP SUSPEND") -- e.g. PHONE LOCKED / APP SWITCH DETECTED elseif event.type == "applicationResume" then print("APP RESUME") end end --setup the system listener to catch applicationExit etc Runtime:addEventListener( "system", onSystemEvent )

All input very much welcome.

Thanks in Advance,

Ash

I’m unaware of a way to narrow this down any further.  There might be a way with Enterprise, but I’m not expert enough in that to know.

Rob

I’m unaware of a way to narrow this down any further.  There might be a way with Enterprise, but I’m not expert enough in that to know.

Rob