Customizing BlackBerry client device templates

You can customize BlackBerry device templates from the resource manager (Manage | Devices) or the template manager (Build | Templates) in Mobile Web Studio. Each resource ID can have one active BlackBerry template.

NoteDevelopers can also modify how applications display on various device types, taking into account screen dimensions and orientation. This is different from customizing BlackBerry client device templates for a specific RID. See the Unwired Accelerator Developer’s Guide for information about modifying how an application displays on various device types.

Once you customize the BlackBerry client device template, you must run a script to create new .cod, .alx, and .jad files.Before you can run the script, you you need the following:

When you run the script, the Signature prompts you for the code signature, then creates new files. You can push the updated BlackBerry client to users, or inform them the updated files are available OTA.

StepsCustomizing the BlackBerry device template

  1. Log in to Mobile Web Studio.

  2. Select Manage | Devices from the Mobile Web Studio left pane.

  3. Under Device Manager, navigate to Objects | Customization | Templates.

  4. Select New from the toolbar in the right pane. The Device Template Customization window displays.

  5. Select each of the tabs and make modifications.

  6. Select Finish to save and close Device Template Customization.The new template displays on the Mobile Web Studio right pane. The template customization settings are saved as an XML template, and linked to a resource ID.

    Before you can deploy the new BlackBerry template, you must build a new BlackBerry client.

  7. Verify that any icons you changed are placed in this directory, or the images will not be included in the new BlackBerry client:

    SYBASE\tomcat\webapps\onepage\bb\customization\images
    

StepsInstalling JDE 4.0.2

To build the new BlackBerry client, you need the RIM JDE 4.02 installed on the same machine as Unwired Accelerator. The scripts use RIM executables that are packaged with the JDE.

  1. In a Web browser, navigate to the RIM download Web site.

  2. Under Downloads, select BlackBerry Java Development Environment v4.0.2.

  3. On Software Download for Developers, select BlackBerry Java Development Environment v4.0.2 and click Next.

  4. Follow the prompts and instructions to install the JDE on the same machine as Unwired Accelerator.

StepsObtaining a code signature

To build the new BlackBerry client, you also need to obtain a code signature from RIM. To learn more, see see the RIM Web site.

  1. In a Web browser, navigate to the BlackBerry Code Signing Keys Order Form.

  2. Fill out the form as required and submit payment to RIM. Once your request is processed, you receive the private key and password via e-mail.

StepsBuilding a new BlackBerry client

You must build the BlackBerry client on a Windows machine, which requires JDK 1.4.2 or later. When you request to build the BlackBerry client, UA server generates the customization XML. The customization XML is zipped in with the BlackBerry client libraries, ant, and RIM utilities. A script, which implements a Signature Tool, generates new ALX, COD, and JAD files.

  1. From Mobile Web Studio, highlight the template in the right pane.

  2. Select the down arrow from the toolbar in the right pane (the tooltip indicates Build). You are prompted to provide the destination for the customization.zip file.

  3. Supply the destination for the file, typically SYBASE\tomcat\webapps\ onepage\ota\bb\direct\customization. You can browse to the location. The customization.zip file is downloaded.

  4. Navigate to the location, and extract the files in the destination you specified, such as SYBASE\tomcat\webapps\onepage\ota\bb\direct\ customization.

  5. Double-click run.bat to run the script. The script runs.

  6. When the Signature Tool prompts you, enter the private key and password you received from RIM, and click OK.

    When the script finishes, the new .cod, .alx, and .jad files are generated and placed in the \build directory where the files were extracted; for example:

    SYBASE\tomcat\webapps\onepage\ota\bb\direct\customization\build\codfiles

  7. Navigate to the these locations.

  8. Move the files to the BlackBerry, OTA, or simulator directories:

  9. Notify BlackBerry users that the new BlackBerry client is available. You can use a push sync notice to do so, as described in “Managing synchronization”.