Creating the User Interface

Copy the Java code files, which provide the functionality and layout of the user interface, from the SUP101 BlackBerry Project example project archive to the SUP101 BlackBerry project.

  1. In Windows Explorer, browse to the directory where you saved the SUP101 BlackBerry Project example project file.
  2. Copy these Java files:
    • CustomerDBCallback.java – implements the CallbackHandler to demonstrate how to track changed entities in the onSynchronize callback method.
    • CustomerList.java – populates the customer list.
    • CustomerSample.java – creates the main customer application.
    • CustomerSampleScreen.java – creates the customer screen.
    • ObjectAPIUtil.java – governs how the application initializes and synchronizes data in the background.
  3. In WorkSpace Navigator, go to SUP101BlackBerry and expand \src\com\mycorp\sup101\bb\app, then paste the copied Java files, copying over any existing files.
  4. Modify the host name or IP address in the ObjectAPIUtil.java file to point to the Unwired Server.
    1. In WorkSpace Navigator, expand the SUP101BlackBerry project.
    2. Under the \src\com\mycorp\sup101\bb\app folder, double-click the ObjectAPIUtil.java file.
    3. Modify the host name or IP address, and verify the username and password are valid.

    BlackBerry Tutorial SUP101BlackBerry Sample Directory