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

Hi,

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);
connection.sendPacket(presence);

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
Yogini
Tinky
Junior Developer
Junior Developer
 
Posts: 19
Joined: Tue Sep 09, 2008 9:18 am
Location: India

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests