Why APK size is so more larger than swf?

amir82a

  • Posts: 16
Hi

I have used unity to make 2D games for android but I found the APK file made by unity is at least 8 MB!
Its a big size for a simple 2D game

I decided to use stencyl as game engine!
which made me more interested to stencyl was the size of flash games
most of them was between 500K to 2MB

now I see my apk file is about 12MB while flash file is just 500K
why APK files in stencyl are so big?
How can make them smaller?


(Sorry for bad english)

carpetguy

  • Posts: 47
I'm lost... the APK in Stencyl or Unity?
I AM DEFINITELY AWAKE (SORRY FOR THE CAPS, MY CAPS-LOCK BUTTON IS BRoKEN :D)

amir82a

  • Posts: 16
APK made by stencyl!

made by Unity at least size: 8 MB
made by Stencyl at least size: 12 MB
while swf made by stencyl is just about 500K

carpetguy

  • Posts: 47
What APK is created by Stencyl?
Is this for iOS or Android... or do you mean the .exe
I AM DEFINITELY AWAKE (SORRY FOR THE CAPS, MY CAPS-LOCK BUTTON IS BRoKEN :D)

rob1221

  • *
  • Posts: 9472
You can lower your max scale to reduce your file size.  I suggest reading the scaling article if you haven't yet: http://www.stencyl.com/help/viewArticle/186

What APK is created by Stencyl?
Is this for iOS or Android... or do you mean the .exe
Flash --> SWF
iOS --> IPA
Android --> APK

amir82a

  • Posts: 16
its not just related to scale!
If you do your best in scaling even apk size is almost 15X than swf size!
It must be related to android coding created by stencyl and I hope them improve that!

Rares

  • Posts: 216
It is related to scaling, because for example if you set scaling to x2 the game generates x2, x1.5 and x1 graphics, that is 3 sets of folders with all graphics right there. Code is measured in Kilobytes for the most part, and i doubt you have enough code to even fill up a Mb
Last version (0.1.5) of my now cancelled game:
http://www.stencyl.com/game/play/27241

Rares

  • Posts: 216
And please for people who do not understand what one is asking, do not try to respond. Also who doesn't know what an APK file is still...just saying. Google is your friend.
Last version (0.1.5) of my now cancelled game:
http://www.stencyl.com/game/play/27241

rob1221

  • *
  • Posts: 9472
Quote
It must be related to android coding created by stencyl and I hope them improve that!
The size added to APKs compared to the project folder size seems to be only a few MB which is not much and will not be improved.  Why are you so worried about size when you're not even close to the 50MB limit?

amir82a

  • Posts: 16
yes guys you are right
the main part of APK file which affect on APK size is related to graphic files in folders inside assets\assets\graphics
there is no way to reduce them cause everyone of them is used for special screen size

I have found out that at least size of APK file made by stencyl is almost 3.4MB ( for 1 scene no actor)

and why size is important for me?
cause I want use stencyl to make games for local market in my country (iran) and you know cause we have problem about internet bandwide here,  and most of people use 2g for cellphones then size is a important factor here :P ( its funny when you see somebody has iphone S5 or xperia z2 using 2g internet service :D )

Rares

  • Posts: 216
You can try PNGGauntlet to DRASTICALLY reduce the size of your graphics.
Last version (0.1.5) of my now cancelled game:
http://www.stencyl.com/game/play/27241