App sizing for android and iphone

I am running the simulator on a windows machine, and have my width set to 320 and height set to 480 in my config file (my app is ran in landscape mode by default). When I do the following code, on android phones, the image does not fill the screen. It fits perfectly height wise but width wise there are black bars on either side, about 20px each. On the iphones, its the opposite, the height is fine again but the width goes beyond the edges of the phone? Any idea why this is happening.

[lua] local img = display.newImageRect(“picture.jpg”, display.contentWidth, display.contentHeight)
img.x = display.contentWidth/2
img.y = display.contentHeight/2[/lua]

Config file:

[lua]application = {

content = {
width = 320,
height = 480,
scale = “letterBox”,
fps = 30,
antialias = true,

–[[
imageSuffix = {
["@2x"] = 2,
}
–]]
}
}[/lua] [import]uid: 152084 topic_id: 27376 reply_id: 327376[/import]

Hey,

The reason is because you are using letterbox scaling - although you wrote “letterBox” it defaulted to “letterbox” because that is the default scaling option.

See here; http://developer.anscamobile.com/content/configuring-projects

[import]uid: 52491 topic_id: 27376 reply_id: 111282[/import]

Isn’t letter box the better one to use in this case, wouldn’t zoomEven cause more content to be displayed outside of the screen? [import]uid: 152084 topic_id: 27376 reply_id: 111374[/import]