Change password problem using smack api

Hello,may I ask if there is a example for how to change the password of a login people,by the way,I am using smack_3_0_4.

I have try to write one below, but I don’t know why,it do work,but the changed password is not the one I input(here is “pwd”),

AccountManager acntmg = jCntn.getAccountManager();

String pwd = “123456”;

try {


} catch (XMPPException e) {

// TODO Auto-generated catch block


return false;


who can help me?

ok,I have fix it.but I don’t know why, I have just add a statement ->acntmg.getAccountAttribute(“name”);

it just work…