Building for Android : app size?

Today is the first time I’ve tried building for Android. I somehow (miraculously) managed to get my app on my phone … but it’s tiny.

I’m not sure how I’m supposed to solve that. I assume there’s something I can set in the project.xml, but I can’t find any info …If someone could point me in the right direction, that would be great ! I would love a step-by-step for building for Android (if that exists).

If you set <window width="640" height="960" if="android" /> (or whatever you prefer) in your project.xml file, we will automatically scale and letter box your application. This does mean you will have black bars on the edges of the user’s screen when the aspect ratio is not a match.

Otherwise, our default behavior is to resize the stage to the full screen size, and to dispatch Event.RESIZE so you can handle this yourself. We have some simple logic in “PiratePig” that demonstrates this, though we should make a version that is DPI-sensitive some time.

1 Like