Hello Dear . . .
I am using Smack3.0.2 to create new account as below code describe my account creation
try{
if (connection != null) {
accountManager= tConC.getAccountManager();
Map<String,String> accouAttributes= new HashMap<String, String>();
StringuserName=”testUser”;
StringuserPass=”pass”;
accouAttributes.put("first", "pm");
accouAttributes.put("last", "pm");
accouAttributes.put("email","pm@hellodomain.com");
boolean accountSupport=accountManager.supportsAccountCreation();
** if**(accountSupport){
accountManager.createAccount userName,userPass,accouAttributes);
}else{
System.*out*.print("Server NotSupporting");
}
}catch(XMPException ex){
ex.getMessage();
}
}
The thing is that supportsAccountCreation() returning me false
And When I try
accountManager.createAccount userName,userPass,accouAttributes);
without checking the supportAccountCreation() it give me exception.
Exception message as “Server does not support account creation”
I also try smack 3.2.1 that’s latest version of smack but it not solve my problem …
I try to create account on same server from PSI client it creating account successfully . . .
I am sure about server that it support the account creation . .
When I try XML manual account creation as give here http://xmpp.org/extensions/xep-0077.html called In-Band registration it works fine . .
Please give me suggestion where I am doing wrong ?
Thanks . . . .
Regards :
Aftab