I had smack 2.2.1 (somehow) working with Google Talk.
I’'ve tried to upgrade but I now get an IllegalStateException…
This is my code (modified ‘‘guessed’’ for 3.0.2)
XMPPConnection gtalk = null;
gtalk = new XMPPConnection(conf);
gtalk.login(“myGoogleIdWithout@”, “myPassword”, “smack”);
Chat chat = gtalk.getChatManager().getThreadChat("email@example.com");
I get this:
java.lang.IllegalStateException: Not connected to server.
Could somebody post a working version end-2-end to simply: connect (googlemail please), create a chat and send a message to someone…