"doesn't work" is not a good problem description. Are you saying that there is no message stanza with a ChatStateExtension send after you called setCurrentState()?
Set SmackConfiguration.DEBUG to true, and show us the stanzas shortly before the call to setCurrentState() and after.