I am using OpenFire Server 3.9 with smack library v 4.1.1 on Android.
Server sends XMPP data such this:
"
Lina
Информация о пользователе
Lina
Ms
image/jpeg
/9j/4AAQSkZJR … 0bX3H/9k=
*
"
On the client (Android with Smack v 4.1.1) I can not read “Ms” value. There is no such value in the object Stanza. All values are present except “PREFIX”.
I began investigation and have found that “Stanzas” objects are returned after they were processed by “VCardProvider” class . In “VCardProvider” for parsing nodes with name “N” used method “parseName” that ignores child nodes with name “PREFIX”.
What is the best solution for get value from “PREFIX” node in XMPP Vcard ?
What is the best solution for get value from “PREFIX” node in XMPP Vcard ?
Until SMACK-673 is fixed, you could replace the provider and subclass vcard.
Thank you very much. Please answer a couple of questions more How I can do this without modifying existing compiled (jar) Smack library? May be exist a way how I can do this without modifying existing smack library source code?