O'Reilly logo

BlackBerry Java Application Development by Bill Foust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - ‑ HTTP Basics

  1. Let's get started with a new project named HTTPBasics. Create a BlackBerry project in Eclipse and create a standard UiApplication derived class and a MainScreen derived class.
  2. At this point you need only one field added to the screen—a RichTextField called _Output. Add a constructor for the screen and then add that field to the screen in the constructor.
  3. You need one more class in this application, a thread to handle the processing of the request. One more time, create a new class derived from Thread called ServiceRequestThread.
  4. Now that the skeleton is in place, start adding some code. The first step will be to set up the thread with the data that you will need in order to make the request. Add these data members ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required