Step-by-step implementation of smiley icons for sending in the application.
- Put all smileys icons in the project resources with a specific unique name.
- Now with a pen and paper, select a unique code for each emoticon icon. Be careful that the code is such that it is usually not used in chat.
- When a user selects a chat icon, before sending this message, the other side scans it and replaces it with a code (via
identifing it unique name ). - And on the receiver side before displaying this message, a code with an image will be sent to the user.
- Therefore, there is no need to send
images via communication, this will increase the load on the message size. - From the user, the user will feel that these icons are sent through a message, but in fact it will be from local resources.
Hope this helps you. Any thing you want to ask, you can ask in the comments.
source share