TCP and BlackBerry

Grim|Reaper

Well-Known Member
Joined
Jun 7, 2005
Messages
206
Reaction score
0
Hi Guys,

I seem to be having a problem with regards to J2ME and blackberry.

I'm building a mobile application using J2ME and the class SocketConnection.
On a normal MIDP phone, the application works without a glitch.

Converting the app to a .cod works with no errors reported. Loading the .cod into a blackberry simulator works perfectly and i can connect using the tcp SocketConnection class to my server without any hassles.

However, when i put the .cod file onto a real blackberry phone, the tcp connection refuses to connect to my server.

Has anyone else had a problem?
I have done some reading, which seems to be a problem that lies with the APN configuration on the blackberry...but i dont understand what to do with this.

Can someone lead me in the right direction?

Thanks
 
Thanks ToxicWazte!

I'll give it a shot tomorrow!
Hopefully I can resolve this issue by the end of the week.
*sigh* the life of a developer...lol
 
woohoo, found a solution.

For anyone interested, i had to include the APN config in the connection string.
hence it will : Connector.open("socket://" + sRemoteAddress + ":" + nRemotePort + ";deviceside=true;apn=internet")
 
woohoo, found a solution.

For anyone interested, i had to include the APN config in the connection string.
hence it will : Connector.open("socket://" + sRemoteAddress + ":" + nRemotePort + ";deviceside=true;apn=internet")

Good for you... Did the StackOverflow.com community help you out?

Have you tried it out?
 
Top
Sign up to the MyBroadband newsletter
X