• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9. Application Development > 95. Create a Simple Stock Quote Application

Create a Simple Stock Quote Application

Build a simple stock quote application that will prompt a user for a stock symbol, then perform an HTTP request to the Yahoo! stock quote server, and finally display the stock price.

To create BlackBerry applications, you must download and install the Black-Berry Java Development Environment (JDE) from the http://www.blackberry.com web site. The JDE contains the development environment, compiler, MDS Simulator, and the BlackBerry Device simulator [Hack #93] . Once the JDE is installed, you are ready to start writing your application.

Launch the JDE, and create a new workspace and a project and call it whatever you want. Then add a new .java file to your project. The simplest version of a BlackBerry UI application must simply contain a public static void main(String[] args) method. Here is an example of the simplest BlackBerry application:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint