ConnectionConfiguration config = null; config = new ConnectionConfiguration(loginServer, 5222); XMPPConnection connection = new XMPPConnection(config); connection.login("username","password")
smack user登陆
原文:http://www.cnblogs.com/feimeng0530/p/4742838.html