Skip to main content
GilAmran
Participating Frequently
October 11, 2011
Question

Captive runtime in Android is 25Meg!!!

  • October 11, 2011
  • 2 replies
  • 629 views

I've created a very simple game:

https://market.android.com/details?id=air.com.infra.games.MemoryCards&feature=search_result

I've used the new AIR 3, captive runtime for Android. and the finaly APK was 8Meg.... that's ok.

But after you install it you have two MAJOR problems:

  1. Your app is now ~25Meg in size (After installation)
  2. It take around 15-20Sec. to see the first screen... (Users think that the app is stuck)

Ideas?

This topic has been closed for replies.

2 replies

Participating Frequently
October 12, 2011

15-20Sec?! oh my god!!

my app need very few sec on iPad2, also including the AIR runtime. What's different between these 2 AIR runtimes? Android and iOS.

Leafcutter
Inspiring
October 12, 2011

On iOS you can specify a Default.png that is automatically shown by iOS before all the AIR stuff and app is even loaded.  This has nothing to do with AIR and is consistent across all iOS apps.

There isn't an equivalent on Android afaik so it has to be done in code and your apk doesn't get control until all the AIR stuff is up and running, hence the delay.

Leafcutter
Inspiring
October 12, 2011

(1) Yes that is a bit of a problem but seems to be the cost of compiling in the AIR runtime.  I am sure that most mobile projects only use a subset of the entire AIR library - its a shame you can't just compile in the bits that you need and drop the rest.

(2) This is partly because of (1) and the fact it takes so long to get a big file up and running with AIR.  You need to create a preloader that is very small and all it does is display a splashscreen and then loads in the main 25mb file that you embed in the assets of your preloader.  The small preloader appears quickly and then gives you time to do your 'work' loading the main app with something onscreen.  This gives an example / explanation and there are others out there :

http://www.mcbrearty.me.uk/index.php/2011/05/09/actionscript-mobile-project-splash-screen/