TCP and BlackBerry

Grim|Reaper

Well-Known Member
Joined
Jun 7, 2005
Messages
205
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
 

Saajid

Expert Member
Joined
Aug 8, 2008
Messages
4,559
Read the short intro to the website from Wikipedia - http://en.wikipedia.org/wiki/Stack_Overflow

Also, you can post your question without the need to register. The site also supports OpenID logins, so you can register/login using your GMail credentials or that of other OpenID providers.

It really is an AWESOME site if you are a programmer.
 

Grim|Reaper

Well-Known Member
Joined
Jun 7, 2005
Messages
205
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
 

Grim|Reaper

Well-Known Member
Joined
Jun 7, 2005
Messages
205
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")
 

Saajid

Expert Member
Joined
Aug 8, 2008
Messages
4,559
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