
Originally Posted by
grahamhughes
"In Series 40 devices the MIDlet needs to be signed to a manufacturer or operator domain; otherwise the property will be null."
Which means, unless you are developing this application specifically for Nokia or for Vodafone Italy, you cannot get the Cell ID on any Series 40.
Cheers,
Graham.
so, they will NOT work on my 6280, but they dont also work on N73 !!
and also we can find a source code propulsed by nokia and they integred S40 :
Code:
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class CellIDMIDlet extends MIDlet implements CommandListener {
private Form form;
private Command exitCommand;
private String S40_cell_id; // Series 40 cell id property
private String S60_cell_id; // S60 cell id property
public void startApp() {
form = new Form("Getting Cell ID");
S40_cell_id = System.getProperty("Cell-ID");
S60_cell_id = System.getProperty("com.nokia.mid.cellid");
form.append("Series 40 devices: " + S40_cell_id + "\n");
form.append("S60 devices: " + S60_cell_id);
exitCommand = new Command("Exit", Command.EXIT, 1);
form.setCommandListener(this);
form.addCommand(exitCommand);
Display.getDisplay(this).setCurrent(form);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command c, Displayable d) {
if (c == exitCommand) this.notifyDestroyed();
}
}