Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
RosterEntry連絡先の名前を取得するために使用できます。しかし、自分の名前を変更する方法と、変更したときに連絡先に表示される方法
RosterEntry
RosterEntry entry = roster.getEntries("myuser"); entry.getName(); // It needs to show my updated name
前もって感謝します。
他のユーザーがあなたにカスタム ニックネームを設定していない限り、Spark はあなたの名前と姓を表示すると思います。
VCard me = new VCard(); me.load(conn); // load own VCard me.setFirstName("John"); me.setLastName("Doe"); me.save(conn);