You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2013/01/11 18:13:06 UTC

[1/2] docs commit: Adapt edge docs to start pages in config.xml

Adapt edge docs to start pages in config.xml


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

Branch: refs/heads/master
Commit: b7e445dadbd579c12ea2e39a43ef962a730d1ea2
Parents: 79725f5
Author: Braden Shepherdson <br...@chromium.org>
Authored: Fri Jan 11 12:04:33 2013 -0500
Committer: Braden Shepherdson <br...@chromium.org>
Committed: Fri Jan 11 12:04:33 2013 -0500

----------------------------------------------------------------------
 docs/en/edge/cordova/splashscreen/splashscreen.md |    4 ++--
 docs/en/edge/guide/cordova-webview/android.md     |    3 ++-
 docs/en/edge/guide/cordova-webview/ios.md         |   10 +++++-----
 3 files changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b7e445da/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 2dea60c..385bec5 100644
--- a/docs/en/edge/cordova/splashscreen/splashscreen.md
+++ b/docs/en/edge/cordova/splashscreen/splashscreen.md
@@ -61,8 +61,8 @@ Setup
 2. In the onCreate method of the class that extends DroidGap add the following two lines:
 
         super.setIntegerProperty("splashscreen", R.drawable.splash);
-        super.loadUrl("file:///android_asset/www/index.html", 10000);
-    
+        super.loadUrl(Config.getStartUrl(), 10000);
+
     The first line 'super.setIntegerProperty' sets the image to be displayed as the splashscreen. If you have named your image anything other than splash.png you will have to modify this line.
     The second line is the normal 'super.loadUrl' line but it has a second parameter which is the timeout value for the splash screen. In this example the splash screen will display for 10 seconds. If you want to dismiss the splash screen once you get the "deviceready" event you should call the navigator.splashscreen.hide() method.
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b7e445da/docs/en/edge/guide/cordova-webview/android.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/cordova-webview/android.md b/docs/en/edge/guide/cordova-webview/android.md
index 747a130..6dfeafe 100644
--- a/docs/en/edge/guide/cordova-webview/android.md
+++ b/docs/en/edge/guide/cordova-webview/android.md
@@ -59,7 +59,8 @@ Guide to using CordovaWebView in an Android Project
                 super.onCreate(savedInstanceState);
                 setContentView(R.layout.main);
                 cwv = (CordovaWebView) findViewById(R.id.tutorialView);
-                cwv.loadUrl("file:///android_asset/www/index.html");
+                Config.init(this);
+                cwv.loadUrl(Config.getStartUrl());
             }
 
 In addition to this, if you are using camera, you will want to implement this as well:

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b7e445da/docs/en/edge/guide/cordova-webview/ios.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/cordova-webview/ios.md b/docs/en/edge/guide/cordova-webview/ios.md
index 373ec1d..5d9ba71 100644
--- a/docs/en/edge/guide/cordova-webview/ios.md
+++ b/docs/en/edge/guide/cordova-webview/ios.md
@@ -96,13 +96,13 @@ Using CDVViewController in your code
 
         viewController.wwwFolderName = @"myfolder";
 
-4. (_OPTIONAL_) Set the `startPage` property (defaults to `"index.html"`). This can be any URL as well:
+4. (_OPTIONAL_) Set the start page in your config.xml, the `<content>` tag.
+
+        <content src="index.html" />
 
-        viewController.startPage = @"mystartpage.html";
-        
     OR
-        
-        viewController.startPage = @"http://apache.org";
+
+        <content src="http://apache.org" />
 
 5. (_OPTIONAL_) Set the `useSplashScreen` property (defaults to `NO`):