Struggling with a google talk connection

Hi Folks,

I’m a bit of a smack newbie here - I’m developing using smack 3.1 beta - for the Android platform - I’m in the UK. I’m trying to get a connection to google talk - alas I seem to be falling at the first hurdle

here’s my code:

ConnectionConfiguration config = new ConnectionConfiguration(“talk.google.com”, 5222,“googlemail.com”);
config.setCompressionEnabled(true);
config.setSASLAuthenticationEnabled(false);
XMPPConnection conn2 = new XMPPConnection(config);
try {
conn2.connect();
}
catch (XMPPException e){
Toast.makeText(getApplicationContext(), “Login Error”+conn2.getHost() + e.getMessage(), Toast.LENGTH_SHORT).show();
}

the XMPPException fires

I’ve tried “gmail.com” instead of “googlemail.com” - doesnt make any difference

It seems to be a common problem but none of the workarounds work for me.

Many thanks in advance

Jonathan Edwards

Hi Folks,

I finally figured it out - go with the android specific fork of smack (asmack), and make sure you enable internet permissions in the android manifest.

great stuff

Jonathan