smack4.1.3, android i need a example
i can’t find a example or example isn’t be used
smack4.1.3, android i need a example
i can’t find a example or example isn’t be used
Hello,
This is a code example for connect to openfire:
XMPPTCPConnectionConfiguration.Builder config = XMPPTCPConnectionConfiguration.builder();
config.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);
config.setUsernameAndPassword(“pere”, “kebab69”);
config.setServiceName(“raspberrypi”);
config.setHost(“192.168.0.199”);
config.setPort(5222);
config.setDebuggerEnabled(true);
mConnection = new XMPPTCPConnection(config.build());
try {
mConnection.connect().login();
} catch (SmackException | IOException | XMPPException e) {
e.printStackTrace();
}
You can change SecurityMode to required if you add a Sslcontext, keystore and trustmanager. You can read Connecting to a server that uses a self signed certificate.
On this community, http://stackoverflow.com/ , github and google do you have a examples for send, receive message to individual and groupal chats.
thank you very much;
Does smack4.1.3 need a JDK7 version?
our project is jdk6
i haved change smack3.
Hi!
Yes it will work with jdk6.
I recommend to update to last version of smack…
Bye!