Skip to main content
Inspiring
December 13, 2010
Question

It is possible to get a splash to appear without a blank screen for several seconds?

  • December 13, 2010
  • 1 reply
  • 10145 views

Hi Guys

I've got a game where the final .apk file size is around 6MB and it was taking anywhere from 10 to 25 seconds to load after initial installation with the user seeing nothing but a blank screen. In fact Android sometimes complained that game was taking to long and asked if I want to force close it !

I've tried adding a very small splash .swf (less than 4KB !) which then loads the main swf and images but the loading time is still around 10 seconds ! (if the user has the game in memory it does load immediately so that's something!)

So my questions are

(A) Is the android Air runtime loading the whole .apk file before displaying anything onscreen ?

(B) Is it possible to get large (5 to 10 MB) AIr apps (AS3 not Flex) to load with a splash screen appearing immediately? if so what's the basic technique

(C) is it possible for one APK to call another apk

Thanks in advance guys

Opps - I should also say that the same game on the iPhone and on a PC has a splash appearing straight away

This topic has been closed for replies.

1 reply

MetaboyAuthor
Inspiring
December 13, 2010

Hi Guys

I've managed to answer my own question ! :-)

Yes its possible to get a splash to appear straight away (well within one to 2 seconds which is close enough) but

(a) You have to create a small splash .SWF which loads your main .SWF (OK so that's fairly obvious but a "Default.PNG" splash screen facility as per the iPhone packager and FLEX projects is what you might expect)

(b) Your splash .SWF must embed the splash image. If you try to dynamically load an image nothing will appear until the whole of the APK file is loaded ( and presumably initialised). That was what I was doing wrong.

(c) Funnily enough sounds play straight away so any start up sounds can stay in the main SWF but I would move them to the splash .SWf as well because that seems like an anomaly that might get "fixed" by Adobe later.

Regards

Participating Frequently
December 15, 2010

Nice. Thanks for sharing! If you have time, could you add your solution to the AIR cookbook?

http://cookbooks.adobe.com/air

MetaboyAuthor
Inspiring
January 28, 2011

Sorry been really busy. I'll try to add something in the next couple of weeks.