The basics of building a BlackBerry application using the stand-alone JDE or the JDE Plug-in for Eclipse. Before really diving into what the BlackBerry API can do, we’ll digress briefly to discuss a few concepts that apply to BlackBerry application development. If you’re eager to get coding, you can skip to the next but I recommend you at least skim over this one first,so you know what’s discussed here and can refer to it later as necessary. We’ll cover some fundamental things that will be used heavily in the next couple of chapters, including the user interface threading model and the BlackBerry API Javadocs. We’ll also cover a few things that are useful to know in many types of applications, like application life cycle, foreground and background applications, and the different types of BlackBerry projects you can create using the development environment.
The BlackBerry development environment comes with API documentation in the Javadoc format.Javadocs should be familiar to Java developers; basically,these form a set of HTML files for each class in the API, detailing all the methods and other properties of each class. You’ll find yourself referring to the Javadocs frequently, so it’s good to know where to find them. They’re also a great way to explore the API and get an idea of what’s possible.
The BlackBerry API Javadocs
If you’ve installed the stand-alone JDE, you can find the Javadocs through the Windows Start menu at Research In Motion ➤ BlackBerry JDE 4.2.1 ➤ API JavaDoc Reference (or a similar place for different versions of the JDE).
With the JDE Plug-in for Eclipse, the Javadocs are located on the filesystem under the Eclipse installation directory. For example, the 4.2.1 component pack is located here: eclipsepluginsnet.rim.eide.componentpack4.2.1_22.214.171.124componentsdocsapiin dex.html.You can also see the Javadoc for any class or method in the Eclipse editor by hovering the mouse pointer over the class or method name for a few seconds.
Viewing the Javadoc for MainScreen class in Eclipse by hovering the mouse pointer