smack 创建账户

时间:2015-08-19 20:05:34   收藏:0   阅读:278

 

     ConnectionConfiguration config;
        config = new ConnectionConfiguration(serverName, 5222);
        connection = new XMPPConnection(config);
        connection.connect();
        final AccountManager accountManager = new AccountManager(connection);
        accountManager.createAccount(getUsername(), getPassword());

 

原文:http://www.cnblogs.com/feimeng0530/p/4742811.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!