Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - How to change status message on GTalk using Smack Api

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 3 guests