06-23-2012 08:53 AM
Socket connection works in simulator but not on the mobile phone of blackberry 9320.
Application send the data to our server from simulator but the same application not works in the Blackberry 9320.
we got the socket connection time out exception.
06-23-2012 09:10 AM
Thanks for the reply...
String url = "socket://***.**.***.****:54321;deviceside=true";
I am using above like for the socket connection. The simulator 9320 send the data to the server but the device 9320
not sending the data to the server.
06-23-2012 10:38 AM
There is a lot to getting networking going on device. I suggest you start here:
and look at this:
If you stick with "deviceside=true", you will have to code APN information on your device and it will never use WiFi.
If you want something that automatically tries t manage this for you, then look at ConnectionFactory API.
There are also plenty of Threads on the forum, a lot similar to this, form people who have struggled to get networking going on device. Search these.
07-04-2012 08:55 AM
In the Mobile phone MDS is activated so now i ran the same application in the device blackberry 9320
i got the Socket Connection Time Out Exception.
07-04-2012 01:28 PM
Share my code :
String url = "socket://" + _screen.getHostFieldText() + ":" + serverport + (_screen.isDirectTCP() ? ";interface=wifi" : "");
Hopefully, the code will help you out.
07-05-2012 12:47 AM
I have used the following line
String url = "socket://184.108.40.206:54321;deviceside=false";
but it is also not working still get the Exception:Time out of socket connection