This section describes how to set up a basic configuration document file for your "Hello World" app.
A configuration document is an .xml file that contains the elements to define the WebWorks app namespace, the name of your app, any app permissions, the start page, and the icons to use for your app. This file also contains any elements you require in order to define general information that's specific to your app, such as the author's name and a description.
The valid file name for a configuration document for a WebWorks app is config.xml, and it's not case sensitive. Within your app's archive, the configuration document must use this file name, and the file must exist in the root folder of the app's archive.
The configuration document contains the widget element at its root. The widget element provides a container for all other elements. For a detailed description about the elements that you can use in your configuration document, see HTML5 WebWorks Developer site.
<?xml version="1.0" encoding="UTF-8"?> <widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="1.0.0.5" id="MyHelloWorldApp" xml:lang="en"> <author>My Name</author> <name>Hello World</name> <description>An HTML5 example app</description> <content src="index.html"/> </widget>
The elements used for this "Hello World" app are described as follows:
This entry point for your app must be called index.html.
A detailed description about the elements that you can use in the configuration file is available on the HTML5 WebWorks Developer site.
In order to use any of the APIs for QNX CAR, you must add the corresponding feature ID (an element used to specify features and functionality that the app can access) to the config.xml file.
Next, you'll set up a file named index.xml, which is the main entry point for your "Hello World" app.