This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
1 Replies Last post: Sep 16, 2008 4:30 PM by Chris Ward  
choijm Bronze 1 posts since
2008-9-4
Currently Being Moderated

Sep 4, 2008 6:37 AM

How can I modify user profile with Smack?

Hi.

 

I am trying to edit user profile (such as nick name) using Smack after login.

I use openfire as IM server.

 

However, I think that Roster's getEntry() method does'nt return the current

user's RosterEntry. Is it right? Then how can I modify user's nick name?

 

Furthermore, I hope to store more information  about user (such as phone number, address, ...)

But, It doesn't look like that the Smack APIs don't support this facilities. Then,

it it doesn't support this, how can I solve this problem?

 

I need your helps.

 

Thank you in advance.

 

Choi

Chris Ward Silver 100 posts since
2005-8-16
Currently Being Moderated
Sep 16, 2008 4:30 PM in response to: choijm
Re: How can I modify user profile with Smack?

Hi,

 

If you only want to store information about the current user, then you might be able to use the VCard class that is part of Smack. It won't allow you to edit the information for other users though.

 

You could also try using the PrivateDataManager to store arbitrary data on the server, but you will need to handle the raw XML yourself.

 

Chris

More Like This

  • Retrieving data ...