Based on https://github.com/koush/AndroidAsync
and https://code.google.com/p/openfire-websockets/
I tried creating a smack-android-websocket similar to smack-bosh
I am attaching the JAVA programs,
Currently the <iq> tags are hard coded inside the code
It seems the websocket plugin does not accepts <stream : stream> initiation
This will only work for android application