RifcoMobile

RifcoMobile

Print this article

BlackBerry Programming 101-How to Get Started With BlackBerry Software Development

by Eric Giguere

With the recent launch of the hot-selling Pearl, (Research In Motion) has gained a toehold into the extremely competitive consumer smartphone market. If you've been ignoring the platform because it was too Enterprise-focused for your applications, it might be time to specifically target the . Here's how you get started.

It's Time

development for all recent models is done exclusively in . So if you're not a strong programmer, now's the time to brush up on your skills. (C# programmers will find the transition to fairly simple, the languages are very close in most respects.) Don't learn about the newest features, however, because the platform is built on top of Micro Edition ( ME), which is itself a derivative of version 1.3. So forget all the fancy (but useful) language features introduced in 1.5 -- generics, enumerations, and so on -- you can't use these in . You can't also use most of the library classes you're familiar with -- they're just not there. A small subset of the Standard Edition ( SE) classes are supported, as well as a number of -specific classes.

Micro Edition?

Once you've brushed up on your , you need to spend a bit of time understanding the ME platform, which was formerly known as 2 Micro Edition, or for short. You need to understand the concepts of configurations and profiles, and in particular the CLDC and MIDP standards. Refer to this article and the ones that follow for detailed explanations.

Another great source of reference material is the Sun Microsystems href="http://developers.sun.com/techtopics/mobility/">Mobility Development Center, which includes numerous articles and technical tips on general ME topics.

The Platform

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

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

After downloading and installing the , you'll want to read the developer's guides that come with the and look at the sample applications that are shipped with it. Then start your development by writing a few simple applications to get a feel for the APIs and the tools.

Get A

Although you can develop and test your applications for free, at some point you'll need to run the application on an actual . This will cost you money, of course, and so it's not something you'll want to do until you're serious about writing applications. On-device testing is crucial to ensuring that the application works correctly, because the is not a perfect emulation system.

If you're truly serious about application development, consider also joining one of the developer programs for additional support and early access to new devices and APIs. You should also explore 's other developer resources. There are also third-party forums and books available to help you learn the platform.

Conclusion

is not hard if you know some and you understand the constraints and limitations of the underlying ME platform. You have to learn a new set of APIs and use new development tools, but in the end it's just another kind of .

Eric Giguere is a member of the AvantGo Platform Team at Sybase iAnywhere, the worldwide leader in middleware, database and management solutions. For more in-depth tips and articles, see his blog target="_new" href="http://blackberry.synclastic.com">BlackBerry Developers At Work!.



Tags: , , , , , , , , , , , , , ,

Related articles (by tags):

Related articles (by keywords):


Click On The Icon Of Your Favourite Site To Instantly Add This Post To Your Bookmarks

Leave a Reply

Name

Mail (never published)

Website




© 2007 RifcoMobile All Rights Reserved.