Changes to the config.xml file
Although BlackBerry WebWorks and BlackBerry WebWorks 2.0 both use a config.xml file to store configuration information for your project, the way in which they are created and used differs slightly.
Reduced need to manually edit the config.xml file
With BlackBerry WebWorks 2.0, there is now little need for you to edit the config.xml file manually, as most of the configuration settings can be manged through the tools. For example, a config.xml file is now created automatically and prepoulated with template configuration information when you create your project
You can use the BlackBerry WebWorks SDK to customize the contents of the file. Clicking BlackBerry WebWorks 188.8.131.52 opens the BlackBerry WebWorks SDK tool. You can click the Info button under your project's name in the navigation panel to view and edit adjust many of your app's configuration settings, including author and description information, orientation, background color, and more.
However, although the tools take care of most of the config.xml creation and customization, you may still need to manually add some configuration information to the config.xml. For example, if you want your app to access the device file system and share files, you will still need to add the <rim:permit>access_shared</rim:permit> entry yourself. Similarly, setting up your app as an invocation target also requires you to manually edit the config.xml file.
No need to add <feature> elements to the config.xml file
If you intend to reuse your existing config.xml file, there is no longer any need to add <feature> elements to the config.xml file. The BlackBerry WebWorks tools will now handle adding these at build time, based on which plugins you've added to your project. For best results, once you have added the required plugins to your project, you should remove all <feature> elements from your existing config.xml.
The <preference> element replaces the <param> element
<feature id="blackberry.app"> <param name="orientation" value="portrait" /> </feature>
<widget> . . . <preference name="orientation" value="portrait" /> </widget>
If you choose, you can set all preferences directly in the BlackBerry WebWorks SDK tool.
For more information on how to add the <preference> element to the config.xml file manually, see preference element.
Last modified: 2013-11-27