hi, I want to use smack4.1 in android and I read the
Smack 4.1 Readme and Upgrade Guide
so I download the 11 files likes those
org.igniterealtime.smack,smack-android,4.1.0-alpha5,1357B01865B2503C18453D208CAC2A9678548E35
org.igniterealtime.smack,smack-android-extensions,4.1.0-alpha5,1357B01865B2503C18453D208CAC2A9678548E35
org.igniterealtime.smack,smack-core,4.1.0-alpha5,1357B01865B2503C18453D208CAC2A9678548E35
org.igniterealtime.smack,smack-tcp,4.1.0-alpha5,1357B01865B2503C18453D208CAC2A9678548E35
org.igniterealtime.smack,smack-extensions,4.1.0-alpha5,1357B01865B2503C18453D208CAC2A9678548E35
org.igniterealtime.smack,smack-experimental,4.1.0-alpha5,1357B01865B2503C18453D208CAC2A9678548E35
org.igniterealtime.smack,smack-resolver-minidns,4.1.0-alpha5,1357B01865B2503C18453D208CAC2A9678548E35
org.igniterealtime.smack,smack-sasl-provided,4.1.0-alpha5,1357B01865B2503C18453D208CAC2A9678548E35
org.jxmpp,jxmpp-core,0.4.0,1357B01865B2503C18453D208CAC2A9678548E35
org.jxmpp,jxmpp-util-cache,0.4.0,1357B01865B2503C18453D208CAC2A9678548E35
de.measite.minidns,minidns,0.1.1,4677EF84C286721DA33C09C98D2028BA8AF1E192
In the ReadMe say "you have to call SmackAndroid.init(Context)" but I can not found this file
when i code likes this to contect the server. but wrong,The exception is the folowing address failed @192.168.2.63:5222 ,but I used aSmack can connect ,
is any other jar need to add?
so I want to know why,how can i connect the server use smack4.1 thanks to answer
ConnectionConfiguration ccf = new ConnectionConfiguration("192.168.2.63", 5222);
XMPPTCPConnection connection = new XMPPTCPConnection(ccf);
try {
connection.connect();
} catch (Exception e) {
CommonUtil.makeToast(mContext, "worng");
e.printStackTrace();
}