PreviousNext

Create resource files

See "Managing resources for localization" for more information about creating resources for a large suite of applications.

Create a resource header file

    1. In the BlackBerry® IDE, create a resource header (.rrh) file and add this file to the project for the application. See "Managing resources for localization" for more information about the naming convention.

      See "Create new source files in a project" for more information about completing the following actions.

      a) Type the source file name.

      b) Type the folder path for the project in the Create source file in this directory field.

      c) Click OK.

    2. At the prompt, type the package name.
    3. Click OK.

      Make sure that the package name matches the folder path. The Add resource header (.rrh) file dialog box appears with a default package name that matches the folder path for the application.

    4. Leave the file blank except for the package statement.
    5. Add the .rrh file to the project for your application.

Create resource content files

    1. In the BlackBerry® IDE, create a resource content (.rrc) file for each locale, and add these files to the project for the application.

      Remember to create a file for the root locale. See "Create new source files in a project" for more information.

      See "Managing resources for localization" for more information about the naming convention.

    2. Leave the files blank.
    3. Add the .rrc files to the project for your application.

See "Change resource files" for more information about adding text resources.

Related topic


   BlackBerry