How to run CoronaCards in landscape orientation in native app

This may be related to 

We have a CoronaCards project that we are trying to run in Landscape (see attached config.lua). We noticed that while running in the simulator, it behaves correctly and shows

display.contentHeight == 320 display.contentWidth == 480

However, once built into native code (using the Fishes example as the starting point), those 2 are reversed, and consequently the visuals aren’t displayed properly.

display.contentHeight == 480 display.contentWidth == 320

I did set the landscape setting in AndroidManifest. But that’s clearly not enough. I get the sense there may be another parameter I need to pass into CoronaView, but I can’t seem to find documentations or examples of how to do it. Can you point me to the right direction. 

android:screenOrientation="sensorLandscape" \>

FYI - I also looked at CoronaView’s javadoc, and it looks like it takes in AttributeSet. Is there something I should set there?

For reference, my config.lua is: 

local aspectRatio = display.pixelHeight / display.pixelWidth

application = {

content = {

         width = 320,

         height = 480,

         – width = 480,

         – height = 320,

         scale = “letterBox”,

         xAlign = “center”,

         yAlign = “center”,

         imageSuffix =


            ["@2x"] = 1, – try to force all devices to use @2x.




And my AndroidManifest is

<?xml version=“1.0” encoding=“utf-8”?>
<manifest xmlns:android=""
package=“” >

android:screenOrientation=“sensorLandscape” >
<action android:name=“android.intent.action.MAIN” />

<category android:name=“android.intent.category.LAUNCHER” />