I created my own XMPP server using openfire. When I want to create new user I go to this web page:

Now I want to build Android app like Spark in which I would able to crate new user.
Can you guide me or direct me to a code snippet for new user creation?
Thanks.
You are looking for the api its called smack and smackx here is the link.
https://stackoverflow.com/questions/9731270/good-tutorial-for-using-smack-with-android