PreviousNext

Resource files

For each BlackBerry® device application, you create the following files:
File
Description
Example

Resource header file

This file defines descriptive keys for each localized string.

During compilation, the BlackBerry® IDE automatically creates a resource interface using the same name as the .rrh file with Resource appended.

AppName.rrh

Resource content file (root locale)

This file maps numeric keys to string literals for the root (global) locale.

AppName.rrc

Resource content file (specific locales)

This file maps descriptive keys to values for the global and specific locales (language and country).

Files must have the same name as the resource header file, followed by an underscore (_) and the language code, and then optionally a single underscore (_) and country code. For example, AppName_en_GB.rrc.

Two-letter language and country codes are specified in ISO-639 and ISO-3166, respectively.

AppName_en.rrc

Initialization file

Initializes the resource bundle mechanism.

Note: This file is no longer required.

init.java

Related topic


   BlackBerry