You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/10/02 11:17:43 UTC

[4/4] docs commit: [CB-4932] Update Android splashscreen in config doc.

[CB-4932] Update Android splashscreen in config doc.


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

Branch: refs/heads/master
Commit: 2af28c572d0e193912321f5641eb06abe15afa96
Parents: 4776bec
Author: Michael Brooks <mi...@michaelbrooks.ca>
Authored: Wed Oct 2 10:17:22 2013 +0100
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Wed Oct 2 10:17:22 2013 +0100

----------------------------------------------------------------------
 docs/en/edge/config_ref/images.md | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/2af28c57/docs/en/edge/config_ref/images.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/config_ref/images.md b/docs/en/edge/config_ref/images.md
index 723e538..653ce66 100644
--- a/docs/en/edge/config_ref/images.md
+++ b/docs/en/edge/config_ref/images.md
@@ -116,21 +116,14 @@ each should be:
 - medium (mdpi): at least 470 &times; 320
 - small (ldpi): at least 426 &times; 320
 
-In the `onCreate` method of the class that extends `DroidGap`, add the
-following two lines:
+In `config.xml`, add the following preferences:
 
-        super.setIntegerProperty("splashscreen", R.drawable.splash);
-        super.loadUrl(Config.getStartUrl(), 10000);
+    <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 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 its second
-parameter specifies a timeout value to display 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.
+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.
 
 ## Splash Screens for the iOS Platform