Thanks for the replay .. but i'm not sure that it's not possible to do. i have attached an image of other android app that can insert emoticon in edittext .. now i'll want to know if it is a b4a limitation or there is a tip that i can use. anyone can help me ? thanks in advance !!
PS: I have found this java source code at this link but i dont know if it can be translated in b4a code :
chat - display smiley in textview and edittext in android - Stack Overflow
ImageGetter imageGetter = new ImageGetter() {
public Drawable getDrawable(String source) {
Drawable d = getResources().getDrawable(
R.drawable.happy);
d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight());
return d;
}
};
cs = Html.fromHtml(
"<img src='"
+ getResources()
.getDrawable(R.drawable.happy)
+ "'/>", imageGetter, null);
System.out.println("cs is:- " + cs);
edttxtemoji.setText(cs);
PS: Sorry for my english