Creating the User Interface

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

  1. In Windows Explorer, browse to the directory where you saved the SMP101 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 SMP101BlackBerry and expand \src\com\mycorp\smp101\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 SAP Mobile Server.
    1. In WorkSpace Navigator, expand the SMP101BlackBerry project.
    2. Under the \src\com\mycorp\smp101\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 SMP101BlackBerry Sample Directory