smack user登陆

ConnectionConfiguration config = null;
config = new ConnectionConfiguration(loginServer, 5222);
XMPPConnection connection = new XMPPConnection(config);
connection.login("username","password")

 

posted @ 2015-08-19 17:22  feimeng0530  阅读(125)  评论(0编辑  收藏  举报