If you are creating a BlackBerry device
application from code generated directly from mobile business objects (MBOs), add a main file to the application.
-
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.
-
Name the file, for example, BBMain. Click OK.
This file is the main entry point to the device application.
-
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.