How to get typing status in XMPP using asmack

I am trying to develop an android app for Instant Messaging. I am able to send messages between two user in gmail. Now I want to see the typing status of one user which should be shown to other user. I am asking for the same thing which we saw in gtalk,whatsapp,fb messenger etc. Kindly help me.