You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2013/09/30 22:59:47 UTC

docs commit: Adding splashscreen XML characters, deprecating stupid Java version

Updated Branches:
  refs/heads/master 375874357 -> 076f268f8


Adding splashscreen XML characters, deprecating stupid Java version


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/076f268f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/076f268f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/076f268f

Branch: refs/heads/master
Commit: 076f268f8531e49371be8c3e39ffda7e46088645
Parents: 3758743
Author: Joe Bowser <bo...@apache.org>
Authored: Mon Sep 30 13:59:34 2013 -0700
Committer: Joe Bowser <bo...@apache.org>
Committed: Mon Sep 30 13:59:34 2013 -0700

----------------------------------------------------------------------
 docs/en/edge/cordova/splashscreen/splashscreen.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/076f268f/docs/en/edge/cordova/splashscreen/splashscreen.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/cordova/splashscreen/splashscreen.md b/docs/en/edge/cordova/splashscreen/splashscreen.md
index 336efd3..7146a66 100644
--- a/docs/en/edge/cordova/splashscreen/splashscreen.md
+++ b/docs/en/edge/cordova/splashscreen/splashscreen.md
@@ -68,13 +68,13 @@ configuration.  See _Platform Support_ in the Overview section.
 
    You should use a [9-patch image](https://developer.android.com/tools/help/draw9patch.html) for your splash screen.
 
-2. In the `onCreate` method of the class that extends `DroidGap`, add the following two lines:
+2. In config.xml, add the following preferences:
 
-        super.setIntegerProperty("splashscreen", R.drawable.splash);
-        super.loadUrl(Config.getStartUrl(), 10000);
-
-    The first line sets the image to display as the splash screen. If you name your image anything other than `splash.png`, you need to modify this line.
-    The second line is the normal `super.loadUrl` line, but it has a second parameter that specifies a timeout value for the splash screen. In this example the splash screen displays for 10 seconds. To dismiss the splash screen once the app receives the `deviceready` event, call the `navigator.splashscreen.hide()` method.
+        <preference name="splashscreen", "splash" />
+        <preference name="splashScreenDelay", 10000 />
+      
+      The first line sets the image to display as the splash screen. If you name your image anything other than `splash.png`, you need to modify this line.
+    The second line sets the delay of how long the splashscreen appears in milliseconds. To dismiss the splash screen once the app receives the `deviceready` event, call the `navigator.splashscreen.hide()` method.
 
 ### iOS