How to change status message on GTalk using Smack Api

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

How to change status message on GTalk using Smack Api

Postby Tinky » Wed Sep 24, 2008 2:12 pm


I m working on application which implements Google talk using Smack api.

I have logged in through the code, able to retrieve buddylist and can chat with the buddy.
The problem which i come across is whenever i try to change the status of user, it changes the status of the user but the status reverts back to the original message as 'Available' after some time.
The code which i used to change the status is

Presence presence = new Presence(Presence.Type.available, "Be right back",0, Presence.Mode.available);

Also can any one help me in how to sign out from the gtalk while exiting as when i disconnect the the connection from the code, the presence remains available, and user is visible to everyone as 'online'.

Please help me..

Thanks in advance
Junior Developer
Junior Developer
Posts: 19
Joined: Tue Sep 09, 2008 9:18 am
Location: India


Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 1 guest