Change super.setProperty() to use super.set<type>Property() in example comments.

This commit is contained in:
Bryce Curtis 2011-02-02 14:37:09 -06:00
parent 7952668cf7
commit 6aa055f46e

View File

@ -56,8 +56,8 @@ import com.phonegap.api.PhonegapActivity;
* super.onCreate(savedInstanceState); * super.onCreate(savedInstanceState);
* *
* // Set properties for activity * // Set properties for activity
* super.setProperty("loadingDialog", "Title,Message"); // show loading dialog * super.setStringProperty("loadingDialog", "Title,Message"); // show loading dialog
* super.setProperty("errorUrl", "file:///android_asset/www/error.html"); // if error loading file in super.loadUrl(). * super.setStringProperty("errorUrl", "file:///android_asset/www/error.html"); // if error loading file in super.loadUrl().
* *
* // Initialize activity * // Initialize activity
* super.init(); * super.init();
@ -69,7 +69,7 @@ import com.phonegap.api.PhonegapActivity;
* super.appView.clearCache(true); * super.appView.clearCache(true);
* *
* // Load your application * // Load your application
* super.setProperty("splashscreen", R.drawable.splash); // load splash.jpg image from the resource drawable directory * super.setIntegerProperty("splashscreen", R.drawable.splash); // load splash.jpg image from the resource drawable directory
* super.loadUrl("file:///android_asset/www/index.html", 3000); // show splash screen 3 sec before loading app * super.loadUrl("file:///android_asset/www/index.html", 3000); // show splash screen 3 sec before loading app
* } * }
* } * }
@ -78,30 +78,30 @@ import com.phonegap.api.PhonegapActivity;
* *
* // Display a native loading dialog. Format for value = "Title,Message". * // Display a native loading dialog. Format for value = "Title,Message".
* // (String - default=null) * // (String - default=null)
* super.setProperty("loadingDialog", "Wait,Loading Demo..."); * super.setStringProperty("loadingDialog", "Wait,Loading Demo...");
* *
* // Hide loadingDialog when page loaded instead of when deviceready event * // Hide loadingDialog when page loaded instead of when deviceready event
* // occurs. (Boolean - default=false) * // occurs. (Boolean - default=false)
* super.setProperty("hideLoadingDialogOnPage", true); * super.setBooleanProperty("hideLoadingDialogOnPage", true);
* *
* // Cause all links on web page to be loaded into existing web view, * // Cause all links on web page to be loaded into existing web view,
* // instead of being loaded into new browser. (Boolean - default=false) * // instead of being loaded into new browser. (Boolean - default=false)
* super.setProperty("loadInWebView", true); * super.setBooleanProperty("loadInWebView", true);
* *
* // Load a splash screen image from the resource drawable directory. * // Load a splash screen image from the resource drawable directory.
* // (Integer - default=0) * // (Integer - default=0)
* super.setProperty("splashscreen", R.drawable.splash); * super.setIntegerProperty("splashscreen", R.drawable.splash);
* *
* // Time in msec to wait before triggering a timeout error when loading * // Time in msec to wait before triggering a timeout error when loading
* // with super.loadUrl(). (Integer - default=20000) * // with super.loadUrl(). (Integer - default=20000)
* super.setProperty("loadUrlTimeoutValue", 60000); * super.setIntegerProperty("loadUrlTimeoutValue", 60000);
* *
* // URL to load if there's an error loading specified URL with loadUrl(). * // URL to load if there's an error loading specified URL with loadUrl().
* // Should be a local URL starting with file://. (String - default=null) * // Should be a local URL starting with file://. (String - default=null)
* super.setProperty("errorUrl", "file:///android_asset/www/error.html"); * super.setStringProperty("errorUrl", "file:///android_asset/www/error.html");
* *
* // Enable app to keep running in background. (Boolean - default=true) * // Enable app to keep running in background. (Boolean - default=true)
* super.setProperty("keepRunning", false); * super.setBooleanProperty("keepRunning", false);
*/ */
public class DroidGap extends PhonegapActivity { public class DroidGap extends PhonegapActivity {