Blank screen on start up

173 views
Skip to first unread message

MartynC

unread,
Aug 5, 2015, 7:35:35 AM8/5/15
to MIT App Inventor Forum
whenever I start an app created in ai2 I get a blank screen. Sometimes this can be for quite a long time. I realize that the app is initializing and I would like to know if the time can be reduced or if the screen can be disguised in any way.




SteveJG

unread,
Aug 5, 2015, 7:49:08 AM8/5/15
to MIT App Inventor Forum
The long wait with a white screen; is this what happens when you are live developing on the device or the emulator (which one?)  or after you build the apk?     Does this happen with all your Projects or just a larger on.

What advice you get depends on your answer.     AI2's graphic environment is s l o w  compared to other Android compilers.  Do you need lightning speed...you should be developing with Eclipse or Android Studio Martyn.



Regards,
Steve

MartynC

unread,
Aug 5, 2015, 8:02:08 AM8/5/15
to MIT App Inventor Forum
Hi Steve,

the delay is in compiled apps and I get a black screen. This is very noticeable in a couple of large apps that that use a lot of lists and lists of screen elements. These take a while to start.
I don't need super fast. I just wondered if there was a way to either reduce the wait or to disguises the process.


SteveJG

unread,
Aug 5, 2015, 8:15:56 AM8/5/15
to MIT App Inventor Forum
Thanks for the explanation.   I suspect there is no remedy..the key words  you provided    are   large apps       and   lists of screen elements.  If you have not already noticed;AI renders the graphical screen very slowly compared to apps built with other platforms.  What probably is happening, when the app attempts to initialize, the app attempts to determine what and how the visible objects render on the screen.  This activity, in my experience is very slow.  Without seeing your code, what you might do is do not provide the update from a list in the Screen1.Initialize (which might be what you are presently doing).   Instead, provide a splash screen to display immediately (this could be a Vertical layout set to true and then to false while hiding other screen elements or an actual separate screen; simultaneously use a timer to update the virtual screen from the list.   Will this work to improve apparent performance?   Perhaps?  What would happen is you might be able to provide an image to amuse you or your users while the real app is combing its hair and applying lipstick.

You might try things like that (no you do not actually need any lipstick).

Regards,
Steve

MartynC

unread,
Aug 5, 2015, 8:30:44 AM8/5/15
to MIT App Inventor Forum
thanks for the suggestions. I will try moving some of the init code around.
Reply all
Reply to author
Forward
0 new messages