powered by Jive Software

Chat application using Smack API and talk.google.com server

I want to create an android chat application using smack api and talk.google.com server but the problem is that when I create a connection to Smack API using gmail id and password and check my user name using “connection.getuser()” my id is showm in following format "anything@gmail.com/Smack_(some smack id)".Now if I send a message from my app using another phone to "anything@gmail.com" it is not recieved but if I send it to "anything@gmail.com/Smack**_**(same smack id)" it is properly recieved.

The smack id being appended is random and changes everytime I connect so it is impossible for me to obtain it by any means and thus message cannot be sent,so how can I overcome this problem.