Hi ,
I am using MIDlet property platformRequest() to do call or open url.
The same is app working fine on other phones like c7,2700 but on c5 the url is not opening.
any help?
Hi ,
I am using MIDlet property platformRequest() to do call or open url.
The same is app working fine on other phones like c7,2700 but on c5 the url is not opening.
any help?
Check that what the call to the platformRequest() is returtning, recall that platformRequest() returns true in such cases, giving your MIDlet fair warning that it must exit. Else it will return the false.
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
its returning false...
but i couldn't get reason behind it.
do you have any idea?
That means that you need not exit the MIDlet before you make the platformRequest call. Your application will be minimized and after processing the call to the URL, the app can be maximized.
For the purpose of testing, you check to exiting the MIDlet, whether this make the call to the specified URL. Please share the code for the platformRequest().
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
code is as follow
public int openUrl(String url) {
try{
platformRequest(url);
return 0;
} catch (ConnectionNotFoundException e) {
//ex.printStackTrace();
System.out.println("url::::EXCPETION::: " + e.getMessage());
return -1;
}
}
i have added return statement to catch if it returns false when there is issue while opening url. So that i can show some alert to notice error.
same is working fine with 2700,c7
You are returning the values wrongly, please note that if platformRequest() returns true, then it is giving fair warning to your MIDlet that it must exit. Else it will return the false. So return the values like this :
boolean midletExitStatus = platformRequest(url);
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,