I have a Nokia 3650 device from Cingular and I can not run my network aware application on it. My plan includes GPRS data, and I am able to send MMS content to E-Mail accounts.
I created a really simple application in order to trace the problem, and I still get the same problem. The sample application is:
HttpConnection c = null;
InputStream is = null;
c = (HttpConnection)Connector.open("http://www.sun.com", Connector.READ);
is = c.openInputStream(); //<< Here I get a NullPointerException.
I am getting a NullPointerException when I try to open the input stream. The strange thing is that the exception is thrown almost immediately, like the device does not even try to reach the server.
Both my application and the sample run perfectly on the Nokia 3650 simulator.
So my question is what could be the problem and how can I avoid it?