Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can normally grouped android manifest elements be split into separate elements

Will this (the way I'd like to do it):

<uses-sdk android:minSdkVersion="7" />
<uses-sdk android:maxSdkVersion="10" />
<supports-screens android:xlargeScreens="true" />
<supports-screens android:smallScreens="true" />

have the same effect as this (the way I've seen documented):

<uses-sdk android:minSdkVersion="7" android:maxSdkVersion="10" />
<supports-screens android:xlargeScreens="true" android:smallScreens="true" />

No errors during compilation and all elements remain in the compiled apk -- but I'm not sure if all the properties are taking effect.

Edit: So I guess part of my question is, how do I test the uses-sdk and supports-screens properties?

Why? I'm generating / modifying my AndroidManifest.xml from a script, and the first format is easier to render than the second.

like image 626
wildabeast Avatar asked May 11 '26 15:05

wildabeast


1 Answers

Yes. You could have tried it and see if you get any errors or if everything works. Then I think the question would be, "Is there any known issues with doing it this way". I'm not sure about anything in the docs officially stating that you can but they do it if you look

Here permissions

and here

Screen Sizes

They are elements belonging to the same tag so they can be grouped together.

like image 95
codeMagic Avatar answered May 14 '26 06:05

codeMagic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!