Skip to main content
Inspiring
Sep 27, 2014 6:13 AM UTC
Answered

Comparing sizes of same app on iOS and Android

I’ve got an Air-for-iOS/Android app (packaged with captive runtime on the Android side). On my Windows 7 development machine the .ipa ‘weighs’ 75MB and the .apk ‘weighs’ 155 MB. An .apk of the same app without the captive AIR runtime is 65 MB. The shared AIR on Android runs about 40 MB (on the mobile device) these days. Where in @!$%^)$* is that extra 50 MB coming from ??  And is there anything to do about it?

Apologies if this has been asked already here.

This topic is closed to new replies. Start a new post to keep the conversation going.
UmanoffCorrect answer
Inspiring
Sep 29, 2014 4:13 AM UTC

I'm using AIR 14 and AIR 15 SDKs.

Maybe something wrong in your SDK folders? Maybe adt include some extra files.

Try latest SDK Download Adobe AIR SDK


Ok, this problem was of my own making, mostly. I didn't realize that, in AIR-for-Android publishing, everything in the deployment folder (the folder with the ,swf and -app.xml files) gets packaged into the apk's 'assets' folder. Including any junk that happens to be in there but doesn't really have to be. That's different from AIR-for-iOS packaging isn't it? (I haven't made an ipa in a couple of months and I've forgotten).

The .apk still seems to be about 20% 'overweight' compared to an .ipa.

Thanks for thinking about this for me.

cu

9 replies

itlancer
Inspiring
Sep 27, 2014 5:57 PM UTC

For my projects it's about extra 10 Mb for Android with captive runtime. But even this critical in some cases.

Feature request for this: Feature#3832296 - [New_Feature_Requirement] Reduce captive runtime file size

Could you write command used to package the APK file? Or it packaged through Flash IDE, Flash Builder or something like that?

Translate
UmanoffAuthor
Inspiring
Sep 27, 2014 6:37 PM UTC
I'm makink apk using 'adb -package ...' Will post exact script in a half hour.
Translate
UmanoffAuthor
Inspiring
Sep 27, 2014 7:19 PM UTC

I'm packaging like this:

adt -package -target apk-captive-runtime -storetype pkcs12 -keystore mycert.p12 -storepass mypwd TechSmartTest4c.apk  TechSmartTest4c-app.xml .

What are your empty .apk sizes, with and without captive runtime?

Translate
Colin Holgate
Inspiring
Sep 27, 2014 2:35 PM UTC

I don't know what is wrong, but I think it's specific to your setup. All the APKs I make from the same FLA are just slightly smaller than the IPA.

How big is a captive runtime empty app, as IPA and APK? Which version of AIR?

Translate
UmanoffAuthor
Inspiring
Sep 27, 2014 4:53 PM UTC
Not near 'puter at the moment but empty captive == about 30MB. That's crazy, right? On AIR 14.
Translate