I am working on Emoji.
I have used this library.
It works fine, But when i get text from the EmojiconEditText
it do not returns me unicode which are used in that edittext
.
As example If text is I \ue32d emojicon
wher \ue32d is a heart icon.
When use String Text=EmojiconEditText .gettext();
it should return the same text as "I \ue32d emojicon"
Please help me for the same.
答案 0 :(得分:1)
最后我找到了解决方案。
您可以使用commons-lang-2.5 jar
检查以下代码,将表情符号转换为unicode。
String textVal=edtpost.getText().toString();
String newval_unicode=StringEscapeUtils.escapeJava(textVal);
您可以从此字符串中找到uni代码。
愿这个答案能帮到别人。