Android pubsub example

I am new to openfire and smack. Using different tutorials on internet I am able to connect my android client with openfire xmpp server locally. After searching alot on internet, I am writing here to get some working example how to publish an item and subscribe an itme using smackx pubsub in android. If anyone knows any link or good in it, please help me out.