Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2296

Move super.setStringProperty and other DroidGap preferences into Config class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • cordova-android
    • None

    Description

      Currently there are too many preferences that need to be set in the main class. These are only documented in the source, and we need to move them into the config.xml. They are the following (from DroidGap.java):

      • // Display a native loading dialog when loading app. Format for value = "Title,Message".
      • // (String - default=null)
      • super.setStringProperty("loadingDialog", "Wait,Loading Demo...");
        *
      • // Display a native loading dialog when loading sub-pages. Format for value = "Title,Message".
      • // (String - default=null)
      • super.setStringProperty("loadingPageDialog", "Loading page...");
        *
      • // Load a splash screen image from the resource drawable directory.
      • // (Integer - default=0)
      • super.setIntegerProperty("splashscreen", R.drawable.splash);
        *
      • // Set the background color.
      • // (Integer - default=0 or BLACK)
      • super.setIntegerProperty("backgroundColor", Color.WHITE);
        *
      • // Time in msec to wait before triggering a timeout error when loading
      • // with super.loadUrl(). (Integer - default=20000)
      • super.setIntegerProperty("loadUrlTimeoutValue", 60000);
        *
      • // URL to load if there's an error loading specified URL with loadUrl().
      • // Should be a local URL starting with file://. (String - default=null)
      • super.setStringProperty("errorUrl", "file:///android_asset/www/error.html");
        *
      • // Enable app to keep running in background. (Boolean - default=true)
      • super.setBooleanProperty("keepRunning", false);

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            bowserj Joey Robert Bowser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: