To develop program for blackberry using JDE with BlackBerry JDE Plug-in for Eclipse Watch BlackBerry® Java® Development Environment videos
-
First : Download BlackBerry JDE Plug-in for Eclipse and Install it
I download Full Installer BlackBerry® Plug-in for Eclipse™
How to install and configure BlackBerry JDE Plug-in for Eclipse ? [Watch]
When you see the video and follow the example you need HelloWorld application here it is [Ref]:
/**
*
* HelloWorld.java
* The sentinal sample!
*
* Copyright © 1998-2008 Research In Motion Ltd.
*
* Note: For the sake of simplicity, this sample application may not leverage
* resource bundles and resource strings. However, it is STRONGLY recommended
* that application developers make use of the localization features available
* within the BlackBerry development platform to ensure a seamless application
* experience across a variety of languages and geographies. For more information
* on localizing your application, please refer to the BlackBerry Java Development
* Environment Development Guide associated with this release.
*/import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.component.RichTextField;/*
* BlackBerry applications that provide a user interface must extend
* UiApplication.
*/
class HelloWorldDemo extends UiApplication
{
/**
* Entry point for application.
*/
public static void main(String[] args)
{
// Create a new instance of the application.
HelloWorldDemo theApp = new HelloWorldDemo();// To make the application enter the event thread and start processing messages,
// we invoke the enterEventDispatcher() method.
theApp.enterEventDispatcher();
}/**
*The default constructor. Creates all of the RIM UI components and pushes the
* application’s root screen onto the UI stack.
*/
private HelloWorldDemo()
{
// Push the main screen instance onto the UI stack for rendering.
pushScreen(new HelloWorldScreen());
}
}/**
* Create a new screen that extends MainScreen, which provides default standard
* behavior for BlackBerry applications.
*/
/*package*/ final class HelloWorldScreen extends MainScreen
{/**
* HelloWorldScreen constructor.
*/
HelloWorldScreen()
{
// Add a field to the title region of the screen. We use a simple LabelField
// here. The ELLIPSIS option truncates the label text with “…” if the text
// is too long for the space available.
LabelField title = new LabelField(“Hello World Demo” , LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
setTitle(title);// Add a read only text field (RichTextField) to the screen. The RichTextField
// is focusable by default. In this case we provide a style to make the field
// non-focusable.
add(new RichTextField(“Hello World!” ,Field.NON_FOCUSABLE));}
/**
* Display a dialog box to the user with “Goodbye!” when the application
* is closed.
*
* @see net.rim.device.api.ui.Screen#close()
*/
public void close()
{
// Display a farewell message before closing application.
Dialog.alert(“Goodbye!”);
System.exit(0);super.close();
}
}
To make test more interesting you can add icon to you HelloWorld Application [Ref]
How To – Create an icon for an application [icon dim]Article Number: DB-00126
How To – Define a rollover icon for an application Article Number: DB-00467
Specifying a rollover icon in BlackBerry JDE Plug-in for Eclipse
Note: While this option is always present in the BlackBerry® JDE Plug-in for Eclipse™ it will only take effect when the application is built using the BlackBerry JDE Component Package 4.7.0 or later.
Complete the following:
1. In the Eclipse™ Package Explorer, right-click the project.
2. Select Properties.
3. Select BlackBerry Project Properties.
4. Select the Resources tab.
5. Add the non-rollover/unfocused application icon in the Icon Files field and add the rollover/focused icon in the Focus Icon Files field.
-
Second : Deploying and Signing Applications in the BlackBerry® JDE Plug-in for Eclipse
How to Deploy and sign BlackBerry JDE Plug-in for Eclipse ? [Watch]
How to Download BlackBerry® Smartphone application Over The Air by user ? [Watch]
MIME types are important without you can’t download the software properly :
.jad = text/vnd.sun.j2me.app-descriptor
.cod = application/vnd.rim.cod
How to Register RIM Controlled APIs ? [About]
What Is – Appropriate version of the BlackBerry JDE [Ref]
Description
When creating and building your application, it is important to choose the correct version of the BlackBerry JDE to make sure that the application is compatible with the target BlackBerry smartphones. Applications built in the BlackBerry JDE are forward-compatible with newer BlackBerry Device Software versions, but they are not backward-compatible with older versions.
For example, an application built in BlackBerry JDE 4.1 runs on a BlackBerry smartphones running BlackBerry® Device Software 4.1 and later. It does not run on a BlackBerry smartphones running BlackBerry Device Software 4.0. Thus, when building applications,
you should use a BlackBerry JDE version that matches the lowest version of BlackBerry Device Software you want to support.
Note: To verify the version of BlackBerry Device Software installed on the BlackBerry smartphone, select Options > About.
Comments