Android Question Can i Send Smiles icons with AsyncStreamsText Class

Modern_Digital

Member
Licensed User
Longtime User
Can i Sending Smiles icons by AsyncStreamsText class with text message in edittext view or is there other view for that.

Thank you.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Yes, it is possible:

SS-2015-11-02_09.38.33.png


You need to add Chr(9786) to the string.

For example:
B4X:
EditText1.Text = $"Smiley: ${Chr(9786)} :)"$
 
Upvote 0

Modern_Digital

Member
Licensed User
Longtime User
Hi Erel,

Thank you , first of all i'm very sorry for my bad english , i think you miss understand me becuse i mean if the user copy some smile icons from for example (IconApp) into clipboard and past it into EditText1 , is the icons in the clipboard will be past in the EditText1 correctly and we can send it and receive it in server app correctly .
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
AsyncStreamsText can only be used to send strings. However you can use AsyncStreams (or AsyncStreamsObject) to send any data you like.

The problem with those smilies is that it is not simple to add smilies to an EditText by code.

Who knows how many chats works, then?
If you use a panel, instead of an EditText, you can show an image, but you should write texts using a canvas; but it seems that "those" chats use "normal" EditTexts (apparently).
:eek:
 
Upvote 0

Modern_Digital

Member
Licensed User
Longtime User
Thanks for all of you for replay, the problem is i using b4a as client and the other side is vb6 app for the server and i cant receive the byte data in vb6 app correctly or i dont know how i do that, is there any way to recevie and send the byte data into and from the vb6 app , can you help.
 
Upvote 0
Top