Adding compatible-screens to the Android manifest

Hi!

I need to add the compatible-screens tag in my Android manifest. As far as I know, only the supportsScreens tag is available in the Corona build settings. As I need to specify the screen density in order to build multiple apks for multiple densities, I was wondering if I could add the compatible-screens tag using the manifestChildElements tag. Something like:

android = { manifestChildElements = { -- Array of strings [[\<compatible-screens \<screen android:screenSize="small" android:screenDensity="ldpi" /\> \<screen android:screenSize="small" android:screenDensity="mdpi" /\> /\>]], }, },

Would that be valid?

Br,

Cleverson

Hi Cleverson,

Using that special table is completely valid (that’s why we provide it) as a means to specify things that aren’t “common” but might be necessary in certain cases. As for the actual XML-style values you specify, that’s something you need to research very carefully… I can’t advise you exactly on what Android expects for every possible entry in the manifest.

Brent

Thanks Brent.

Just confirming that it worked as I needed.

Hi Cleverson,

Using that special table is completely valid (that’s why we provide it) as a means to specify things that aren’t “common” but might be necessary in certain cases. As for the actual XML-style values you specify, that’s something you need to research very carefully… I can’t advise you exactly on what Android expects for every possible entry in the manifest.

Brent

Thanks Brent.

Just confirming that it worked as I needed.