Copying Unwired Platform Files to Sample Project

Copy Unwired Platform BlackBerry runtime files and generated object API code to the SUP101Sample project. You had created the code previously in the Generate Code wizard.

  1. In Windows Explorer, browse to <UnwiredPlatform_InstallDir>\UnwiredPlatform\MobileSDK\ObjectAPI\BB.
  2. Copy these files: CommonClientLib.cod, MessagingClientLib.cod, MocaClientLib.cod, sup_client2.cod, and UltraLiteJ12.cod.
  3. Paste the copied COD files into the BlackBerry Java Plug-in simulator directory, located in <BlackBerry_Eclipse_InstallDir>\plugins\net.rim.ejde.componentpack<version>\components\simulator.
  4. In Windows Explorer, go to the workspace folder you set for Sybase Unwired WorkSpace, and copy the generated code files.
    For example, go to C:\Documents and Settings\user1\SUP-wksp\SUP101\Generated Code\src and copy the SUP101 folder.
  5. In the BlackBerry Application Development workspace, go to the SUP101Sample project and paste the folder into the src directory.
    For example, go to C:\Documents and Settings\user1\BB-wksp\SUP101Sample\src and paste the SUP101 folder.
    In Package Explorer, you see the SUP101 and SUP101.intrnl folders.

    If the copied folders do not appear, click Refresh or press F5.

  6. Modify the Customer.java file so the KeywordFilterField displays the data properly.
    1. In Package Explorer, expand the SUP101Sample\src\SUP101 folder.
      Tip: If you do not see the SUP101 package, refresh the project.
    2. Open the Customer.java file.
    3. After the line: /** End code region: JSON methods **/, add this code: public String toString() { return getFname() + " " + getLname(); }
    4. Select File > Save.