I am currently developing a chat application and I am using the following Vcard to store User information.
public void run() {
VCard vcard = new VCard();
vcard.setJabberId(xmppConnection.getUser());
vcard.setNickName(user.getChatId());
vcard.setFirstName(user.getUsername());
vcard.setPhoneHome("CELL", user.getMobileNo()); }
In addition to the above values I want to add new fields to the Vcard like
vcard.setNotificationType(user.getNotType())
vcard.setAlerts(user.getAlerts())
Is this possible? If so please help me on how to do it. Thanks.
I know it's an old question but maybe someone would need the answer..
You can use vCard.setField(String field, String value)
For Example :
vcard.setField("NotificationType", user.getNotType());
And to get it back :
vcard.getField("NotificationType");
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