I am using aSmack library to communicate with remote xmpp server. I am able to send/receive messages, but I want to get timestamp of incoming message.
Could you tell me
It also works for 4.1.9
DelayInformation inf = null; inf = (DelayInformation)message.getExtension(DelayInformation.ELEMENT,DelayInformation.NAMESPACE); if (inf != null){ Date date = inf.getStamp(); System.out.println("date: "+date); }