Files in the sample application

Filename

Description

device/HTTPPushDemo.java

This file contains the main method, which starts the application, the HTTPPushDemo class, which creates and adds the UI components to the main screen, and the inner class, ListeningThread, which accepts the push request and receives the data from the server-side application.

server/HTTPPushDemo.java

This file is the server-side application, which pushes the data to the BlackBerry® device or the BlackBerry® Smartphone Simulator which runs the client-side application. This application is a standard JFrame application that runs on your computer.

server/run.bat

This file is a DOS script that compiles and runs the server-side application.

Next topic: System requirements
Previous topic: Featured classes

Was this information helpful? Send us your comments.