AnsweredAssumed Answered

Account manager callback?

Question asked by Deepak on Mar 7, 2017
Latest reply on Mar 7, 2017 by Deepak

I wanted to create account on my XMPP server (ejabberd); which is being created successfully via the following code:


XMPPTCPConnectionConfiguration conf= XMPPTCPConnectionConfiguration.builder()





XMPPTCPConnection connection = new XMPPTCPConnection(conf);
try {


   AccountManager accountManager = AccountManager.getInstance(connection);
   Map<String, String> map = new HashMap<>();
   map.put("username", user);
   map.put("password", password);
   map.put("email", email);
   accountManager.createAccount(user, password, map);
} catch (SmackException e) {

} catch (IOException e) {

} catch (XMPPException e) {



But how to know when the account is created successfully or not? Is there any callback? I didn't find any, so I am asking this question here.

I want to user to navigate to next screen when account is created successfully but unable to do so since I don't know if account is created or not.