Load first page on splashscreen using phonegap on android

Posted by Syg on Stack Overflow See other posts from Stack Overflow or by Syg
Published on 2012-02-17T12:16:07Z Indexed on 2012/09/24 15:37 UTC
Read the original article Hit count: 302

Hi i'm using phonegap in conjunction with Jquery mobile. I'm trying to immediately fetch the main page, while showing the user a splashscreen.

In PhoneGap for Android i'm using this

super.setIntegerProperty("splashscreen", R.drawable.splash);
super.loadUrl("file:///android_asset/www/index.html", 2000);

While this loads the splash, it also delays the loading of index.html. It it possible to start fetching it right away? Also, if not with phonegap, has anybody done this using JQM instead of phonegap?

UPDATE: After using it with a slower loading first page (doing a json request) it kinda looks like the splash screens shows for a longer period of time, so this appears to be the default behavior

© Stack Overflow or respective owner

Related posts about android

Related posts about jquery-mobile