Asmack android

Hi,

org.jivesoftware.smack.tcp.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPCo nnection.java:431)

throw new ConnectionException(failedAddresses);

my code is flow:

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

SmackAndroid.init(this);

new XmppClientTask().execute();

}

public class XmppClientTask extends AsyncTask<Void, Void, Void>{

@Override

protected Void doInBackground(Void… params) {

System.setProperty(“java.net.preferIPv6Addresses”, “false”);

mConfig = new ConnectionConfiguration(“114.215.209.75”,5222);

SASLAuthentication.supportSASLMechanism(“PLAIN”,0);

mConfig.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);

mConfig.setReconnectionAllowed(false);

mConfig.setSendPresence(false);

mConfig.setCompressionEnabled(false);

mConfig.setDebuggerEnabled(true);

mXmppConn = new XMPPTCPConnection(mConfig);

try{

mXmppConn.connect();

Log.i(“LOG_TAG”, "Total User Found in Chat "+ mXmppConn.getUser());

}catch(XMPPException Exc){

Exc.printStackTrace();

}catch (SaslException e) {

e.printStackTrace();

} catch (SmackException e) {

e.printStackTrace();

} catch (IOException e) {

e.printStackTrace();

}

return null;

}

}

do you have the right domain configured in the openfire server?

i think you should use mXmppConn.login(name,pwd) before mXmppConn.getUser(), remove the log and try it