The answer in one word : NO
The Emulator only represents an simulation of the actual device, it is not the actual device. So if ur codes run in the emulator don't take it for granted that it is all working and it is bound to run in the device too. There are several pros & cons that are need to be handled while running in the real device.
The benefits of signing a midlet does not certainly involve solving the pitfalls of your code (or your actions) and make it run. It has certain purposes to handle.
Hope this will help u to know this :
http://developer.motorola.com/techresources/testingcertification/testing_signing_programs/MIDlet_Testing_and_Signing.pdf/
Your problem here seems to be a security problem. Tell me if u are getting any dialog that asks for your permission to establish the connection or not. And after that another dialog asking which gateway to choose among the existing ones in your phone. If this two are coming then your code is working well at least till the connection establishment step. Is then your app fails to run? If so try to reach the url using the same gateway in the web browser in your phone. I'm quite sure that if your code is ok then it is the problem with the gateway.
Hope you will find out the problem.
Regds,
SD
I am getting a dialog that asks me for the permission to establish a connection but I am NOT getting a dialog that asks me which gateway to choose. And after I give the midlet the permission I am getting the IOException.
And for trying the url on my phone browser, I got a message that says "Item not supported, cannot be downloaded". This url is a server address that responds to POST messages. This url works perfectly when I use the emulator.
If you still think my problem is with the gateway, could you please help me to solve it.
Well, are you able to surf the public net through your mobile?
If so then please check the server firewall if it is blocking access from mobile (a less probable condition though).
Else u should ask somebody to make the necessary settings for the gateway for ur provider. You are not getting a gateway chooser dialog means u don't have set any or there is only one present.
Yeah, I could surf the public net through my mobile. And the server firewall is not blocking the access, since I am able to connect when I use a Nokia phone. But the sony ericsson and motorola aren't working.
Thank you, I will try to figure out who to make the settings for the gateway.
Message was edited by:
MIKE9009
null