Android 4.0.3 bug on Resume

Our game works perfectly on most Android devices, is designed with orientation ‘landscape’, but in some devices with uncommon screen resolution, such as bq pascal (800x480). The game behaves strangely when suspend and resume again.
The entire set of what is displayed (which is all included in a screengroup) moves left and right alternately each time it is activated after being suspended.
We use to center elements the value of display.screenOriginX display.screenOriginY.
The Android version of this particular device is 4.0.3
We use this function to control when the game comes out of suspend:

function recolocarPantallaOnResume (event)

if (event.type == “applicationResume”) then
print (“System event name and type:” … event.name, event.type)

screenGroup.x = xDispositivo
screenGroup.y = yDispositivo
Runtime: removeEventListener (“system”, recolocarPantallaOnResume)
end

end [import]uid: 55048 topic_id: 32077 reply_id: 332077[/import]

This is a known bug in Corona that only happens on Android tablets (not phones) running Android OS version 3.0 and higher… and only with apps that support both portrait and landscape orientations. It has nothing to do with suspend/resume. All you have to do is change the orientation from portrait to landscape and vice-versa for the content to be misplaced. It gets misplaced due to the bottom navigation bar moving with the screen, pushing the Corona content with it.

The only work-around at the moment is to support a fixed orientation. That is, set up your app to only support “portrait” and “portraitUpsideDown”… or “landscapeRight” and “landscapeLeft”.

This is an issue that we plan to address next month, after our upcoming Corona SDK release. [import]uid: 32256 topic_id: 32077 reply_id: 128648[/import]

This is a known bug in Corona that only happens on Android tablets (not phones) running Android OS version 3.0 and higher… and only with apps that support both portrait and landscape orientations. It has nothing to do with suspend/resume. All you have to do is change the orientation from portrait to landscape and vice-versa for the content to be misplaced. It gets misplaced due to the bottom navigation bar moving with the screen, pushing the Corona content with it.

The only work-around at the moment is to support a fixed orientation. That is, set up your app to only support “portrait” and “portraitUpsideDown”… or “landscapeRight” and “landscapeLeft”.

This is an issue that we plan to address next month, after our upcoming Corona SDK release. [import]uid: 32256 topic_id: 32077 reply_id: 128648[/import]