[
https://issues.apache.org/jira/browse/CB-2296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13565974#comment-13565974
]
Joe Bowser commented on CB-2296:
--------------------------------
This already does exist, but it's not well documented. Certain things like
R.drawable.splash aren't easily done, and we should handle that special case.
> Move super.setStringProperty preferences into Config class
> ----------------------------------------------------------
>
> Key: CB-2296
> URL: https://issues.apache.org/jira/browse/CB-2296
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 2.3.0
> Reporter: Joe Bowser
> Priority: Critical
> Fix For: 2.5.0
>
>
> 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);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira