Developing Your Own BlackBerryApplications
ow that you know what your BlackBerry is capable of straight fromthe box,you can start to think about adding to its capabilities.Thischapter focuses on working with Java application program interfaces(APIs) to create BlackBerry-specific software for your handheld.After you learn how to build the simple BlackBerry program in this chapter, you will be equipped to create programs that can perform a wide range of tasks—serious
frivolous—on your BlackBerry.However,if you have no interest in learning to program,you can safely skipthis specific chapter.You don’t have to be a BlackBerry programmer inorder to have fun with the projects in the rest of this book.
Java and BlackBerry
If you are not familiar with Java,think of it as a special program that runson a wide variety of computer operating systems.Computers that useMicrosoft Windows,Apple’s Mac OS,Linux,and UNIX are all capable of running the Java environment.
Some operating systems come with built-in Java support. If yoursdoesn’t, you can download Java from
. Thiswebsite is not only an excellent place to learn more about Java,but it is also
website for finding and downloading the latestJava platform and tools.
When RIM created the BlackBerry device,the developers decided that it was important for the devices to be based on the Java platform.That’s why Java,an optional environment on Windows,is the
environment onthe BlackBerry device.If you wish to create native software programs for your BlackBerry,you need to make sure that your programs work with Java.In addition to being a software environment,Java is also the name of theprogramming language used to create software programs that run on the Javaplatform.The Java programming language is similar in concept to other
Downloading theBlackBerry JavaDevelopmentEnvironment
Writing Java code
Building your firstBlackBerryapplication
Debugging your application withthe BlackBerryDevice Simulator
in this chapter