The achievements of newer BlackBerry types like the Pearl, Curve, Daring and Storm have permitted RIM (Analysis in Movement) to penetrate the shopper smartphone marketplace and go head-to-head with the Apple Apple iphone as an application platform. If you've been ignoring the BlackBerry platform since it was also Company-centered for your purposes, it may well be time to precisely target the BlackBerry. Listed here's how you get started out.
It's Java Time
BlackBerry growth for all latest types is accomplished solely in Java. So if you're not a robust Java programmer, now's the time to brush up on your Java programming competencies. (C # programmers will come across the transition to Java relatively straightforward, the languages are really close in most respects.) Do not understand about the latest Java capabilities, nonetheless, since the BlackBerry platform is designed on prime of Java Micro Edition (Java ME) , which is itself a spinoff of Java model 1.3. So forget all the extravagant (but practical) language functions released in Java 1.5 – generics, enumerations, and so on – you can not use these in BlackBerry programming. You can not use most of the library courses you're common with – they're just not there. A modest subset of the Java Typical Version (Java SE) lessons are supported, as very well as a number of BlackBerry-particular classes.
Java Micro Version?
At the time you've brushed up your Java, you will need to spend a little bit of time comprehension the Java ME system, which was previously acknowledged as Java 2 Micro Version, or J2ME for shorter. You need to understand the concepts of configurations and profiles , and in particular the CLDC and MIDP criteria. You'll uncover tons of details about these in numerous guides and on Sunshine's Java advancement website.
The BlackBerry Platform
Just after understanding about Java ME, it's time to discover the BlackBerry system. The BlackBerry platform is dependent on the CLDC and features guidance for MIDP 2.. However, a substantial selection of BlackBerry-unique courses are also furnished. Which provides you to the to start with question you'll experience: are you heading to compose a BlackBerry application or a MIDP software? In a MIDP application you're constrained to only use the APIs exposed by the CLDC and MIDP expectations. Your application will run on the BlackBerry and on most cellphones, but it will not be able to use any of the BlackBerry's specific capabilities. You can use any MIDP-appropriate growth tool, this sort of as the Sunshine Java Wireless Toolkit for CLDC (formerly recognised as the J2ME Wi-fi Toolkit ), to generate your apps.
Most software builders decide to establish BlackBerry-distinct programs. This means mastering the BlackBerry-distinct APIs – like new person interface classes – and using the BlackBerry Java Enhancement Setting (JDE) to develop your apps. The JDE, which is free of charge to down load, works with the standard Java Software Growth Package and presents you with all the instruments vital to develop, offer, test, and debug BlackBerry apps. You do not even want a BlackBerry handheld, due to the fact the JDE includes a whole-showcased BlackBerry machine simulator. A comprehensive set of JavaDocs is provided that describes all the lessons and interfaces accessible to programmers.
Immediately after downloading and setting up the JDE, you'll want to browse the developer's guides that come with the JDE and search at the sample purposes that are shipped with it. Then begin your progress by crafting a couple of simple applications to get a feel for the BlackBerry APIs and the equipment.
Get A BlackBerry Handheld
Though you can produce and exam your purposes for no cost, at some point you'll want to run the application on an precise BlackBerry handheld. This will expense you income, of course, and so it's not some thing you'll want to do right up until you're significant about producing BlackBerry purposes. On-device tests is important to guaranteeing that the software performs properly, simply because the simulator is not a ideal emulation procedure.
If you're seriously major about BlackBerry application growth, contemplate also joining a person of the BlackBerry developer applications for more support and early entry to new units and APIs. You really should also check out RIM's other BlackBerry developer resources. There are also third-bash community forums and publications out there to help you find out the BlackBerry system.
BlackBerry programming is not challenging if you know some Java and you comprehend the constraints and limitations of the underlying Java ME platform. You have to find out a new set of APIs and use new advancement equipment, but in the close it's just a further variety of Java programming.