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  阅读(129)  评论(0)    收藏  举报