Hello erveryone, I’m using asmack to develop a chat client for Anroid.
When I send a lot of text in Chinese, The Connection lost immediately but not in English or Numbers.
Here are my ConnectionConfiguration initialization:
ConnectionConfiguration cc = new ConnectionConfiguration(“192.168.0.18”, 5222);
ConnectionConfiguration cc = new ConnectionConfiguration(“192.168.0.18”, 5222);
cc.setSecurityMode(SecurityMode.disabled);
cc.setSASLAuthenticationEnabled(false);
cc.setReconnectionAllowed(true);
cc.setSecurityMode(SecurityMode.disabled);
cc.setSASLAuthenticationEnabled(false);
cc.setReconnectionAllowed(true);
XMPPConnection conn = new XMPPConnection(cc);
And I send Message like this:
Message msg = new Message();
msg.setBody(“Message Content”));
msg.setTo("testuser@127.0.0.1");
conn.sendPacket(msg);