Trouble with Dynamic image resolution

I am testing my app on a Samsung Galaxy Tab, but in this device the screen background is not full.

i using this config

if(display.pixelHeight / display.pixelWidth\>=1.53) and (display.pixelHeight / display.pixelWidth\<1.7) then application = { content = { width = 320, height = 440, scale = "letterbox", xAlign = "center", yAlign = "center", --fps = 30, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, } }, } else application = { content = { width = 320, height = 470, scale = "letterbox", xAlign = "center", yAlign = "center", --fps = 30, imageSuffix = { ["@2x"] = 1.5, ["@4x"] = 3.0, } }, --[[-- Push notifications notification = { iphone = { types = { "badge", "sound", "alert", "newsstand" } } } --]] } end

I need your help

Thanks

Hi,

You can use this for all devices.

local aspectRatio = display.pixelHeight / display.pixelWidth

application = {

   content = {

      width = aspectRatio > 1.5 and 320 or math.ceil( 480 / aspectRatio ),

      height = aspectRatio < 1.5 and 480 or math.ceil( 320 * aspectRatio ),

      scale = “letterBox”,

      fps = 30,

      --showRuntimeErrors = false,

      imageSuffix = {

         ["@2x"] = 1.5,

         ["@4x"] = 3.0,

      },

   },

}

Best Regards,

Team, SP Technolab

www.sptechnolab.com

Hi,

You can use this for all devices.

local aspectRatio = display.pixelHeight / display.pixelWidth

application = {

   content = {

      width = aspectRatio > 1.5 and 320 or math.ceil( 480 / aspectRatio ),

      height = aspectRatio < 1.5 and 480 or math.ceil( 320 * aspectRatio ),

      scale = “letterBox”,

      fps = 30,

      --showRuntimeErrors = false,

      imageSuffix = {

         ["@2x"] = 1.5,

         ["@4x"] = 3.0,

      },

   },

}

Best Regards,

Team, SP Technolab

www.sptechnolab.com