supportsScreens for Android Devices

Hi,

I have 2 android apps with different resolution such as

  1. 480x800 HDPI

  2. 1280x720 XHDPI [Will work for 1920x1080 XXHDPI]

 

 

What changes shall i make, so that it will be compatible  with the respective devices.

We uploaded the builds on play store but, the 480x800 HDPI build was getting downloaded in 1280x720, 1920x1080 devices and so on.

Is there any thing, I am missing in my build.settings or config.lua.

 

Though i have used this code in build.setting , I am not able to solve this issue.

 

Code for: XHDPI 

[lua]

supportsScreens =
        {
         resizeable = false,
         smallScreens = false,
         normalScreens = false,
         largeScreens = true,
         xlargeScreens = true,
        },

[/lua]

 

Code for: HDPI 

[lua]

supportsScreens =
        {
         resizeable = false,
         smallScreens = true,
         normalScreens = true,
         largeScreens = false,
         xlargeScreens = false,
        },

[/lua]

 

How shall i restrict this??

 

 

 

 

 

 

~Thanks & Regards

  Rohan

I think playstore is only able to limit the devices, not so much of the screen res.

I would recommend that you use corona to detect the device’s screen resolution using androidDisplayApproximateDpi http://docs.coronalabs.com/api/library/system/getInfo.html#TOC ) and then you load your app accordingly.

I think playstore is only able to limit the devices, not so much of the screen res.

I would recommend that you use corona to detect the device’s screen resolution using androidDisplayApproximateDpi http://docs.coronalabs.com/api/library/system/getInfo.html#TOC ) and then you load your app accordingly.