BlackBerry Programming 101 – Getting Started with BlackBerry Software Development
Auto

BlackBerry Programming 101 – Getting Started with BlackBerry Software Development

The success of newer BlackBerry models, such as the Pearl, Curve, Bold and Storm, has enabled RIM (Research in Motion) to penetrate the consumer smartphone market and compete head-to-head with Apple’s iPhone as a mobile platform. Applications. If you’ve been ignoring the BlackBerry platform because it was too enterprise-focused for your apps, it might be time to focus specifically on BlackBerry. This is how you start.

It’s java time

BlackBerry development for all recent models is done exclusively in Java. So if you’re not a good Java programmer, now is the time to brush up on your Java programming skills. (C# programmers will find the transition to Java quite simple, the languages ​​are very similar in most respects.) ME), which itself is a derivative of Java version 1.3. So forget about all the fancy (but useful) language features introduced in Java 1.5 (generics, enums, etc.) that you can’t use in BlackBerry programming. You also can’t use most of the library classes you’re familiar with, they just aren’t there. A small subset of Java Standard Edition (Java SE) classes is supported, as well as several BlackBerry-specific classes.

Java microediting?

Once you’ve brushed up on your Java, you should spend a little time understanding the Java ME platform, which was previously known as Java 2 Micro Edition, or J2ME for short. You need to understand the concepts of settings and profiles, and in particular the CLDC and MIDP standards. You’ll find a lot of information about these in various books and on Sun’s Java development site.

the blackberry platform

After learning about Java ME, it’s time to explore the BlackBerry platform. The BlackBerry platform is based on CLDC and includes support for MIDP 2.0. However, a large number of BlackBerry-specific classes are also provided. Which brings you to the first question you’ll face: are you going to write a BlackBerry app or a MIDP app? In a MIDP application, you are forced to use only the APIs exposed by the CLDC and MIDP standards. Your app will run on the BlackBerry and most cell phones, but you won’t be able to use any of the BlackBerry’s special features. You can use any MIDP-compliant development tool, such as the Sun Java Wireless Toolkit for CLDC (formerly known as the J2ME Wireless Toolkit), to create your applications.

Most application developers choose to create BlackBerry-specific applications. This means learning the BlackBerry-specific APIs, including the new user interface classes, and using the BlackBerry Java development environment (JDE) to develop your applications. Free to download, JDE works with the standard Java Software Development Kit and provides you with all the tools you need to build, package, test, and debug BlackBerry applications. You don’t even need a BlackBerry handheld, because the JDE includes a full-featured BlackBerry device simulator. A complete set of JavaDocs is provided that describes all the classes and interfaces available to programmers.

After you download and install JDE, you’ll want to read the developer guides that come with JDE and see the sample applications that ship with it. Then start your development by writing some simple applications to get familiar with the BlackBerry APIs and tools.

Get a BlackBerry handheld

Although you can develop and test your apps for free, at some point you’ll need to run the app on a real BlackBerry handheld. This will cost you money, of course, so it’s not something you want to do until you’re serious about creating BlackBerry apps. On-device testing is crucial to ensure the app works properly, as the simulator is not a perfect emulation system.

If you’re serious about developing BlackBerry apps, also consider joining one of the BlackBerry Developer Programs for additional support and early access to new devices and APIs. You should also explore RIM’s other BlackBerry developer resources. There are also third-party forums and books available to help you learn about the BlackBerry platform.

Conclution

BlackBerry programming is not difficult if you know some Java and understand the restrictions and limitations of the underlying Java ME platform. You have to learn a new set of APIs and use new development tools, but in the end it’s just another type of Java programming.

Leave a Reply

Your email address will not be published. Required fields are marked *