Creating a BlackBerry Device Application Client Project

Create a BlackBerry client project that contains Device Application Designer generated code (other than the options definition code), and BOBUIController.java (the application entry point).

  1. Create a BlackBerry project in the same workspace that contains the supOptions project and name it supClient.
  2. Right-click the project and select Properties.
  3. In the properties dialog, select the Application tab, and specify CLDC Application as the project type.
  4. Select the Build tab, and in the Imported jar files section, click Add to add BOBFramework.jar to the project, which is located in: <UnwiredPlatform_InstallDir>\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.bob.rim_<version_timestamp>\generate\\blackberry\build-<version>\BOBFramework.jar
    Note: Select the correct version of BOBFramework.jar for your BlackBerry operating system from these supported versions: 4.2.1, 4.3.0, 4.5.0, 4.6.1, or 4.7.0.
  5. Select the supClient project, right-click and select Add file to project to insert generated Device Application Designer code into the project:
    1. Verify that the generated code is the correct version (you can see the version from the Device Application Designer generation wizard).
    2. Locate the Device Application Designer generated code at the generated location and add it to the project. For example: <workspace_name>\.metadata\.plugins\com.sybase.uep.bob.rim\<bobfilename>\generated\com\sybase\uep\bobclient\custom\
    3. Locate BOBUIController.java in the installation location and add it to the project: <UnwiredPlatform_InstallDir>\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.bob.rim_<version_timestamp>\generate\blackberry\src\com\sybase\uep\bobclient\controller\BOBUIController.java
      Note: All Device Application Designer generated code and required libraries are imported to the projects, and project types are set. If custom coding or widget events are enabled, you must also add the generated subclasses and widget event delegate to the client project. This code is located in the custom folder at <workspace>\.metadata\.plugins\com.sybase.uep.bob.rim\<bobfilename>\custom.
  6. To make the client project dependent on the options project, select the supClient project and select Project Dependencies. Select the supOptions project in the dialog box.