I did a little app in J2ME, it just open the browser with a target link.
Nevertheless, it works in some models of phones and in others it does not.
It works in:
- BlackBerry 9000.
- Nokia n97.
- BlackBerry Javeline 8900
Id does not work in:
- Nokia e71 : it install the app, but the browser does not open.
- Nokia n81 : Idem.
- Samsung f330: it can not install the app.
- BB 9800 : install OK. Browser with page OK. When closing the app it re-start. (maybe using some kind of "finish()" in JavaME would help?)
I don't know why it works in some phones and in others don't. In theory, it should work with every phone with support of J2ME (JavaME).
EDIT: Here is the relevant code.
protected void startApp() throws MIDletStateChangeException {
// TODO Auto-generated method stub
boolean mustExit = false;
try {
/**
* mustExit - Boolean
*
* Some MIDP platforms are more restricted than others.
* For example, some don't support concurrent processing,
* so the MIDlet must exit before the platform can honor
* a service request.
*
* If <true> destroy the app. So the browser
* can start.
*/
mustExit = platformRequest("http://www.stackoverflow.com");
} catch (ConnectionNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
if(mustExit){
destroyApp(true);
notifyDestroyed();
}
//Display.getDisplay(this).setCurrent(timeAlert);
}