Today I upgraded from smack 2.1 to 3.0, and I noticed (sadly) that the GoogleTalkConnection used to simplify the connection to google talk is not anymore there… well, I replaced it with the following code:
ConnectionConfiguration config = new ConnectionConfiguration(“talk.google.com”, 5222);
That’'s the host-part of your jid. gmail offers @gmail.com, @googlemail.com and hosted domains. All of them go the same server (talk.google.com), but the server has to know which one you want to use somehow.
I’‘m really trying hard to connect to google talk servers too, but for me it seems like i’‘m using the wrong credentials, but i’'m quite sure i do use the correct ones? What can be wrong?
ConnectionConfiguration config = new ConnectionConfiguration(“talk.google.com”, 5222, “gmail.com”);
XMPPConnection connection = new XMPPConnection(config);