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(“”, 5222,“”);
XMPPConnection conn2 = new XMPPConnection(config);
try {
catch (XMPPException e){
Toast.makeText(getApplicationContext(), “Login Error”+conn2.getHost() + e.getMessage(), Toast.LENGTH_SHORT).show();

the XMPPException fires

I’ve tried “” instead of “” - 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