We want our app to close on interruptions, such as sleep, or voice-calls. Unfortunately the application does not close successfully on a voice call interrupt. When returning to the application after a voice call, the user is presented with a blank black screen and is unable to resume application use. The user found that the only way to exit this state was to activate the device lock screen using the power button. After unlocking the device, the user was returned to the device home screen.
Device: Samsung T959V (Vibrant Plus) B T959VUVJLB Installed Devices: Samsung P1010 (Galaxy Tab) A 2.2.1
[code]
local function onSuspend( event )
if( ‘applicationSuspend’ == event.type ) then
if( ‘simulator’ ~= system.getInfo( ‘environment’ )) then
os.exit()
end
end
end
Runtime:addEventListener( ‘system’, onSuspend )
[/code] [import]uid: 4596 topic_id: 19088 reply_id: 319088[/import]