Im working on phonegap 1.9 , android, eclipse 4.2, jquerymobile i want to display splash screen.I have used this article. Its working fine in android simulator but when i build application using build.phonegap.com/apps/MyAppId/builds and run it on ipad default splash screen appears here is my code ,i have placed icons and spalshscreen images in their respective folders
java activity code
public class MyPhoneGapActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.setIntegerProperty("splashscreen", R.drawable.ic_launcher);
super.loadUrl("file:///android_asset/www/index.html",5000);
}
}
javascript code
<script type="text/javascript" charset="utf-8">
var onDeviceReady = function() {
cordova.exec(null, null, "SplashScreen", "hide", []);
document.getElementById("devready").innerHTML = "";
};
function CheckDeviceReady() {
document.addEventListener("deviceready", onDeviceReady, true);
}
</script>
<body onload="CheckDeviceReady();" id="stage" class="theme">
<div id="devready" data-theme="b">Device not ready..</div>
</body>
PhoneGap Build only your web assets. It doesn’t build any native source code (MyPhoneGapActivity.java). You can find .apk file in Eclipse project bin folder
create config.xml file in www folder and put splash image in “splash/android/” folder and then build in phonegap site. for more details see https://build.phonegap.com/docs/config-xml
www/config.xml: