An application registration file defines information about an application that is required by the application launcher or system shell. This includes the application’s name, UID and properties. Other information required by the shell, for instance the icons and captions, is defined separately; the location of the icon/caption definitions is provided in the registration file. Before v8.1, all of this information was provided by aif files. In v8.1, both aif files and registration files are supported, but from v9.0 onwards, only registration files are supported.
A registration file is required by every application, even if it has default properties, icons and caption. Minimally, it must specify the application's UID and the name of the application’s executable.
For an example, see An example registration file and icon/caption file.
A registration file defines the following non-localisable application information; in other words, information that never varies according to the phone’s language setting:
the application’s properties, such as whether it is embeddable or hidden,
a group name; this may be used to categorize applications. Note that a group name may also be defined in the localisable file. If so, the localisable version will take precedence.
a number which identifies the screen on which the application is displayed (if the phone has multiple screens).
the MIME types supported by the application, and the priority of support for each,
a list of files owned by the application,
a flag that identifies non-standard types of application,
for server applications only, a list of the services provided.
All of these properties are defined using an APP_REGISTRATION_INFO resource struct. See its declaration in AppInfo.rh for the default values. For more information about these properties, see Defining application icons, captions and properties.
Most applications also need to define localisable information, for instance non-default captions and icons and possibly a group name (described above). The registration file specifies its location. This can be done in one of two ways:
as the name and path (excluding drive letter and extension) of a localisable icon/caption definition file,
as the ID of a LOCALISABLE_APP_INFO resource struct defined in the application’s UI resource file. In this case, the name and path of the application’s UI resource file (excluding drive letter and extension) must also be provided.