Skip to main content
Inspiring
September 27, 2014
Answered

Comparing sizes of same app on iOS and Android

  • September 27, 2014
  • 2 replies
  • 873 views

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 has been closed for replies.
Correct answer Umanoff

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

2 replies

itlancer
Inspiring
September 27, 2014

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?

UmanoffAuthor
Inspiring
September 27, 2014
I'm makink apk using 'adb -package ...' Will post exact script in a half hour.
UmanoffAuthor
Inspiring
September 27, 2014

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?

Colin Holgate
Inspiring
September 27, 2014

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?

UmanoffAuthor
Inspiring
September 27, 2014
Not near 'puter at the moment but empty captive == about 30MB. That's crazy, right? On AIR 14.