BlackBerry Programming 101 – How to Get Started off With BlackBerry Computer software Improvement

0
13
Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  


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&#39ve 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&#39s how you get started out.

It&#39s Java Time

BlackBerry growth for all latest types is accomplished solely in Java. So if you&#39re not a robust Java programmer, now&#39s 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&#39re common with – they&#39re 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&#39ve 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&#39ll uncover tons of details about these in numerous guides and on Sunshine&#39s Java advancement website.

The BlackBerry Platform

Just after understanding about Java ME, it&#39s 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&#39ll experience: are you heading to compose a BlackBerry application or a MIDP software? In a MIDP application you&#39re 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&#39s 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&#39ll want to browse the developer&#39s 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&#39ll want to run the application on an precise BlackBerry handheld. This will expense you income, of course, and so it&#39s not some thing you&#39ll want to do right up until you&#39re 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&#39re 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&#39s other BlackBerry developer resources. There are also third-bash community forums and publications out there to help you find out the BlackBerry system.

Summary

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&#39s just a further variety of Java programming.

Source by Eric Giguere

Don't miss out!
Subscribe To Newsletter

Receive top technical news, lesson ideas, travel tips and more!

Invalid email address
Give it a try. You can unsubscribe at any time.

Spread the love
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

LEAVE A REPLY

Please enter your comment!
Please enter your name here