PDA

View Full Version : after splashscreen on iphone and android, sencha shows a blank screen 1-2 sec.



tomtim
28 Feb 2012, 3:02 AM
hey guys,

if the app starts the device on ios and android it always shows a blank screen for 1-2 sec.

are there some performance issues? i do not understand this problem.

thanks in advance.

mitchellsimoens
28 Feb 2012, 9:17 AM
This is probably the time it takes to actually execute the code.

tomtim
29 Feb 2012, 7:27 AM
it was a phonegap bug

tomtim
5 Mar 2012, 4:35 AM
phonegap does not solved this problem on 1.4.1 version .. my solution was to fixed the image in index.html
android and use css media queries to get the right android resolution.

also do not forget to hide the splash screen with jquery ... cause bad performance


<img class="splash-wrapper" src="your.png"/>


img.splash-wrapper{
position: fixed;
top: 50%;
left: 50%;
margin-top: -240px;
margin-left: -160px;
}


$('img.splash-wrapper').hide()

hope this helps somebody