Hello,
I am trying to simplify the connection to server code as much as possible. I keep getting errors. Errors in RED.
Code:
import org.jivesoftware.smack.ConnectionConfiguration;
import org.jivesoftware.smack.XMPPConnection;
import org.jivesoftware.smack.XMPPException;
public class connector {
ConnectionConfiguration config = new ConnectionConfiguration(“mydomain.com”,5222,“mydomain.com”);
XMPPConnection connection = new XMPPConnection(config);
connection.connect(); // Syntax error on token “connect”, Identifier expected after this token
connection.login(“username”,“password”); //Syntax error on tokens, delete these tokens
}
What is the simplist code that I can write that will simply connect me to my jabber server and nothing more? Thanks.