Orientation + background problem on Ouya + Gamestick

Hi fellas,

Recently I started studying Corona SDK using all sorts of tutorials including this one :

https://www.youtube.com/watch?v=qHIZLfcDkUo

As he says , the config.lua being used is the ultimate modern one by Rob Miracle

The issue here is however that it doesnt appear correctly on Ouya +Gamestick

(I have attached two images for comparison)

I am using this build.settings

settings =

{

    orientation = {

        default = “portrait”, 

        supported = { “landscapeLeft”, “landscapeRight”, “portrait”, “portraitUpsideDown” },

    },

}

and this :    background = display.newImageRect(“bg.png”,900,1425)

on every .lua file

I have both bg.png(900X1425) and bg@2x.png(1800X2850) as recommended by Rob.

(although the guy with the tutorial didnt)

however the problem persists on these two devices.

Also I am trying to add some more functionality to the app by adding orientation like this:

function onOrientationChange(e)

    if (e.type ~= “faceUp” or e.type ~=“faceDown”) then

            start.rotation = start.rotation - e.delta

    end

end

Runtime:addEventListener(“orientation”,onOrientationChange)

Is there a better way to do this ?Things dont appear correctly and are clipping through each other

On this note is there an ultimate build.settings file ala config.lua that can work for all apps and devices?

I am asking this because It seems most apps on the market change orientation and can be viewed both in portrait and landscape mode(both directions).So is there a universal way to do this?

Thanks for your time.