Using my application, i want to change the status of my gmail or gtalk. How can i change it? Is there any sample code??
Thanks in advance.
If you are using Smack API for Android :
// Create the presence object with default availability
Presence presence = new Presence(Presence.Type.available);
// Set the status message
presence.setStatus("Lame status is lame");
// Set the highest priority
presence.setPriority(24);
// Set available presence mode
presence.setMode(Presence.Mode.available);
// Send the presence packet through the connection
connection.sendPacket(presence);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With