Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Can't use account manager with asmack

$
0
0

Hi

 

I am trying to use account manager with asmack but I am getting compiler error:

 

Here is my code:

 

    ConnectionConfiguration config = new ConnectionConfiguration("SERVER IP", 5222,"localhost");

    config.setSecurityMode(SecurityMode.disabled);

    XMPPConnection conn2 = new XMPPTCPConnection(config);

    conn2.connect();

    AccountManager am = new AccountManager(conn2);

 

In `AccountManager` line I am getting following error:

 

    The constructor AccountManager(XMPPConnection) is not visible

 

How can I resolve it ?


Viewing all articles
Browse latest Browse all 10742

Trending Articles