public void login() {
try {
connection.login(loginUser, passwordUser);
Log.i(“LOGIN”, “Yey! We’re connected to the Xmpp server!”);
} catch (XMPPException e) {
e.printStackTrace();
} catch (SmackException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
catch (Exception e) {
Log.i(“login fuction”,“login error”);
e.printStackTrace();
}
}
i’mgetting an error at this stage after succesful connection to the server