I am new to Blackberry programming and starting my first app soon. I believe I will be supporting OS 4.5 and higher, but now need to decide which JDE to use. I want to support the most amount of phones as possible, which is why I would guess 4.5 and higher is a good cutoff. Can anyone make suggestions of what JDE is best for features and support? I know that is very subjective. Is there a site even that lists the features of each JDE to make a good decision?
R – Picking a Blackberry JDE version
blackberryjde
Related Solutions
Well they are Java from a language standpoint. It just doesn't support all of the standard edition packages. It falls more inline with the microedition standards, but is way beyond J2ME from a package standpoint. They don't go around saying they're in compliance with J2SE 1.6, but it's still Java.
And of course it has arrays, unless you mean the class, Arrays
. But, they have that too. It's located in package net.rim.device.api.util
.
I looked at your code and nothing blatantly wrong jumped out at me. However, I wouldn't designate the main application class the duties of being the FieldChangeListener. It's not something it should have to be aware of. The best I can do for you is provide an example app that implements the FieldChangeListener interface for a ButtonField. It's not a solution but maybe with your better knowledge of your code you'll be able to pick something out that is different than this example. Hope it helps.
import net.rim.device.api.ui.Field;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.ui.container.MainScreen;
import net.rim.device.api.ui.component.Dialog;
import net.rim.device.api.ui.component.LabelField;
import net.rim.device.api.ui.component.ButtonField;
import net.rim.device.api.ui.FieldChangeListener;
/**
* Test implementation of ButtonField.
*/
public class TestAppMain extends UiApplication
{
/**
* Default Constructor.
*/
private TestAppMain() {
pushScreen(new AppScreen());
}
/**
* App entry point.
* @param args Arguments.
*/
public static void main(String[] args) {
TestAppMain app = new TestAppMain();
app.enterEventDispatcher();
}
/**
* Main application screen.
*/
private static class AppScreen extends MainScreen
{
/**
* Default constructor.
*/
public AppScreen() {
LabelField title = new LabelField("Button Test Demo",
LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
setTitle(title);
// Create a button with a field change listener.
FieldChangeListener listener = new FieldChangeListener() {
public void fieldChanged(Field field, int context) {
ButtonField buttonField = (ButtonField) field;
System.out.println("Button pressed: " + buttonField.getLabel());
}
};
ButtonField buttonField = new ButtonField("Test Button", ButtonField.CONSUME_CLICK);
buttonField.setChangeListener(listener);
add(buttonField);
}
/**
* Handle app closing.
*/
public void close() {
Dialog.alert("Goodbye!");
System.exit(0);
super.close();
}
}
}
Best Answer
Below there is a list of embedded simulators for JDE versions.
JDE 4.0.2
5790 6230 6280 6710 6720 7100g 7100r 7100t 7100v 7100x 7210 7230 7250 7280 7290 7510 7520 7730 7750 7780
JDE 4.1.0
7100g 7100r 7100t 7100v 7100x 7250 7290 7520
JDE 4.2.0
8100 8100 - TMobile US
JDE 4.2.1
7130 7130e 8100 8700 8703e 8707 8800
JDE 4.3.0
8120 8130
JDE 4.5.0
8100 8110 8120 8130 8300 8310 8320 8330 8700 8703e 8800 8820 8830
JDE 4.6.0
9000
JDE 4.6.1
8900 8350i
JDE 4.7
9500 9530
JDE 5.0
8900 9000