I have written XMPP client in java using smack 4.0.6 library. The following lines can successfully connect to the XMPP server in java. But using asmack-8-4.0.6 library,these lines in android is unable to connect to same XMPP server.
ConnectionConfiguration conf = new ConnectionConfiguration(SERVERADDRESS,
5222);
conf.setReconnectionAllowed(true);
XMPPConnection connection = new XMPPTCPConnection(conf);
connection.connect();
I have added following permission in the Android Manifest. Still it unable to connect the server.
<uses-permission android:name="android.permission.INTERNET" />
The error message is given below
` `org.jivesoftware.smack.SmackException$ConnectionException`