Adding a Device Application Entry Point

If you are creating a BlackBerry device application from code generated directly from mobile business objects (MBOs), add a main file to the application.

  1. From the BlackBerry project that contains your generated MBO code, for example supOptions, add a new file by right-clicking the project and selecting Create new file in project.
  2. Name the file, for example, BBMain. Click OK.
    This file is the main entry point to the device application.
  3. Import the common BlackBerry device application development packages as well as the package that contains your MBOs (for example, com.custom.MBO.*).
    You can now create the code to connect to Unwired Server, access and synchronize your MBOs, and perform other functions.