Android Chat Suggestions

Hi guys, I was working on a chat application, and I need some suggestions on this. I have a separate server, and whenever a user logs into my application and selects a user, viewing and sending a message, he will be stored on the server, and then my application checks if any new message has appeared for me. if any message appears, I will be notified to the user. For this, I used this method to update ui when a new message appears

And when the chat continues for more than 3 minutes, the application starts to slow down ... I'm looking for the best deals on how to solve the problem.

+4
source share
1 answer

If the application is sluggish, it means that somewhere there is a memory leak, either you are logging or doing something that should not be done in the user interface thread. Maybe you polled the server too much?

By the way, using TextView for chat is primitive, use decryption mode for ListViews.

+2
source

Source: https://habr.com/ru/post/1379595/


All Articles