Hi,
I have an registered gateway for my gtalk in openfire and which is gtalk.mydomain and registred with account “testaccount@gmail.com”.
Now how and where i can retreive the status message which is set for “testaccount@gmail.com”. and is “Hello world”.
I am trying to fetch that in presence listener using the below code.
RosterEntry entry = roster.getEntry(userid); // here userid = gtalk.mydomain
if(entry!=null) { username = entry.getName(); statusMessage = entry.getStatus().toString(); }
is that correct ? or i have to do
roster.getEntry(testaccount\40gmail.com@mydomain);
??
Regards,
Samba