hi motta,
i haven't heard about platformRequest just failing on S60 (or at least never found similiar issue in tech notes),
simple code tested on 3250 (s603rdEd):
Code:
package tests;
import javax.microedition.io.ConnectionNotFoundException;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
public class LaunchBBCMidlet extends MIDlet implements CommandListener,
ItemCommandListener{
public LaunchBBCMidlet(){
mainForm = new Form("Launch browser");
exitCommand = new Command("Quit", Command.EXIT, 1);
mainForm.addCommand(exitCommand);
mainForm.setCommandListener(this);
openUrlCommand = new Command("Open", Command.ITEM, 1);
launchButton = new StringItem(null, "Goto BBC Mobile", Item.HYPERLINK);
launchButton.setLayout(Item.LAYOUT_NEWLINE_AFTER);
launchButton.setDefaultCommand(openUrlCommand);
launchButton.setItemCommandListener(this);
mainForm.append(launchButton);
}
public void startApp() {
Display.getDisplay(this).setCurrent(mainForm);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void commandAction(Command command, Displayable displayable) {
System.out.println(command);
if(command == exitCommand){
doExit();
}
}
public void commandAction(Command command, Item item) {
System.out.println(command);
if(command == openUrlCommand){
launchBrowser();
}
}
private void launchBrowser(){
String url = "http://www.bbc.co.uk/mobile/";
try {
if(platformRequest(url) == true){
doExit();
} else{
mainForm.append("web page launched\n");
}
} catch (ConnectionNotFoundException ex) {
ex.printStackTrace();
}
}
private void doExit(){
mainForm = null;
Display.getDisplay(this).setCurrent(null);
destroyApp(false);
notifyDestroyed();
}
private StringItem launchButton;
private Command exitCommand;
private Command openUrlCommand;
private Form mainForm;
}
maybe that is related to an url you are using?
is that url working while entered in native browser?
regards,
Peter