try{
/********at this moment network became slow or failures*******/
chat.sendMessage(e.getMessage());
log.info("Message was sent: " + e);
} catch (XMPPException ex){
log.error("Error: " + e + ", ex=" + ex);
}
Hi! I’m using smack and openfire, I want to put a loading gif besides the message body on the client screen, if the message was sending it shows loading and when sent it will disappear, so how to know whether message was sent or not?