Create the framework for the application by extending the UiApplication class. This class represents your application. Provide a main() method for the new class. In the main() method, create an instance of the new class and invoke the enterEventDispatcher() method to enable the application to receive events. Provide a constructor for the new class. In the constructor, invoke the pushScreen method to display the custom screen for the application.

Create the screen for the application by extending the MainScreen class. Provide a constructor for the new class. In the constructor, create the title for the screen with a LabelField object and display it by invoking the setTitle() method. Invoke the add() method to display a text field on the screen.

Create a URI that represents the database file by invoking the static create() method of the URI class.
Invoke the create() method of the DatabaseFactory class to create the database that corresponds to the URI that you created. This creates an SQLite database on the microSD card of the BlackBerry device.
If you do not specify a full path, the database is created in a folder named after your application.