View Single Post
  (#93 (permalink)) Old
rivviepop Offline
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Posts: 2,138
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Default 11-05-2007, 07:58 PM

Quote:
Originally Posted by LunkHead View Post
Odd.... You have LogicMail working?? I could not / still can't get it working... My Gmail and others are working like a champ....
Part of the fun of Open Source is that we can look at the code and see why it might/might not work! So, here's the connection class itself:

http://www.logicprobe.org/proj/logic...onnection.java

Lines 66 - 68 show that we're using the three java classes mentioned to actually open the data stream to the server, using a single method (line #170):
Code:
socket = (StreamConnection)Connector.open(connectStr, Connector.READ_WRITE, true);
According to the 4.2 API docs:
http://www.blackberry.com/developers...Connector.html

...that means that the connection is using your TCP (APN) and not BIS-B - look under the 'socket' and 'ssl' sections in the API doc and 'deviceside' setting then read line #151 of the LogicMail code linked above.

It may not make sense at first, but if you're using SSL in LogicMail then another setting on your device controls whether or not it tries to go through your carrier - read that API doc section on "tls or ssl" and the comments below the method description.

The setting on your device which controls that is Options -> Security -> TLS. The out of the box default is 'Proxy', but I keep mine set to 'Handheld' instead to get a direct end-to-end connection with my remote server. This setting might be why some people can get LogicMail working and some can't without a data plan... (a guess on my part, you need to be using SSL)
   
Reply With Quote