Introduction
I have been contributor to FlickrEdit Java based application for last two plus years, and obviously my photos are all stored at Flickr. When I got Blackberry Storm I started looking for application that would allow me to view my photo sets on my Storm using the full screen size, but I couldn’t find any. I decided to write the application and this blog should document the process.
Following is a compilation of links, comments and hints I collected and which I am using for my BlackBerry application development.
Blackberry Developer Resources
- Getting started with BlackBerry JDE
- Developer Tutorials
- Useful links for novice and experienced programmers
- BlackBerry Developer Videos
- Developer Forums
- Knowledge Base Articles
- Programming BlackBerry with J2ME
- BlackBerry Programming Tutorials
- Create BlackBerry Application with Open Source Tools
- Blackberry J2ME Development
- Creating a BlackBerry Game
- BlackBerry development with Ant
- BlackBerry JDK Tools – Getting Started
- Hello BlackBerry!
Setting up Blackberry Development environment
If you spend most of your day in Eclipse like me, you will be glad to find out that Research In Motion (RIM) offers great Eclipse plugin to develop Blackberry applications, BlackBerry JDE Plug-in for Eclipse. You can install the plugin into existing Eclipse installation, or you can install full Eclipse 3.4 with Blackberry plugin. Current version 1.0 uses Eclipse 3.4 and it is not officially supported on Windows 7 and most importantly the Blackberry simulators do not work well on 64bit Windows Vista or Windows 7. Windows OS is a requirement. Here are the steps to install Blackberry plugin:
- Download BlackBerry JDE Plug-in for Eclipse and install it
- Download the Eclipse Software Update for the BlackBerry JDE v4.7 Component Pack and install it from Eclipse Help/Software Updates… dialog (install from Archive)
- Download and install standalone BlackBerry Java Development Environment v4.7.
The standalone pack contains standalone IDE (looks like NetBeans based) that you can use to view, build and run sample applications. You can find the IDE in Start/Programs/Research In Motion menu. The Research In Motion menu also contains BlackBerry JDE API Reference. You can load sample applications from installed standalone BlackBerry Java Development Environment to Eclipse with File/Import…/BlackBerry/Existing BlackBerry Projects into Workspace.
To run sample application like HelloWorld Demo, select main class source file and use Run (orDebug) as/BleckBerry Simulator. Default simulator is BB 83xx, so you should:
- In Window/Preferences/BlackBerry JDE/Installed Components and select BlackBerry JDE Component Package v4.7
- In Run/Run(or Debug) Configurations… select BlackBerry Simulator/DebugServer and in Simulator tab select appropriate simulator, for me it was 9530-JDE
After that you can run an application in appropriate BB simulator, note that application in BB Storm 9530 is located in Downloads folder.
MDS simulator
MDS Simulator is part of the standalone BlackBerry JDE. This software simulates the communication traffic between a real BlackBerry and the RIM network. Without the MDS simulator running, the BlackBerry device simulator is unable to communicate with hosts on the Internet. You can configure your Eclipse Run/Debug configuration to start MDS simulator when you start BlackBerry simulator.
E-mail simulator
The JDE also includes an e-mail simulator. Because so much of the operation of a BlackBerry is e-mail-related, it’s a good idea to make use of the e-mail simulator. This permits applications to test e-mail-related functionality.
Application Icon
Every application should have an icon. Check this tutorial about how to set project icon in Eclipse, and check HowTo Create an icon for an application for icon sizes.
Blackberry Application
BlackBerry application extends UiApplication class. An application consists of set of screen pushed (UiApplication.getUiApplication().pushScreen()) to the application screen stack (only top screen on the stack is displayed).
You can remove the top screen from the stack by using UiApplication.getUiApplication().popScreen(). Push screen is non-modal, non-blocking, you can use UiApplication.getUiApplication().pushModalScreen() if you need application to block till the screen is closed.
Also keep in mind that you can create a PopupScreen, not just a MainScreen or FullScreen. A popup screen allows you to display a floating screen that hovers on top of whatever is behind it. You can push/display this popup screen normally or modally. This is much like a dialog box frame in Swing.
BlackBerry UI
- BlackBerry Sample application labs
- Fields Reference
- ListField Example
- How To – Create a color ListField
- John Banks UI tutorials
- BlackBerry UI Framework overview
- Display web page in browser
- Display row of images
- Displaying images
Deploying Application
Guide how to deploy application is available here.
Additional useful information about signing and OTA deployment is here.



