So I am currently trying to make some sort of a messaging app, really basic (just to learn). And I'm stuck to the point where the app has to listen to any changes on a MySQL database (that's where the app send the message) so it can update its recyclerview and put the data in it.
I have already done the part where you send the data to do the DB and to retrieve (using Volley) it but I just made a loop that repeats itself every 5 seconds to see if anything has been added to the DB, which is working but bad :/
I don't have some code to show you since I haven't done anything on this part. Ask me if you need more details :)
So I'd like my app to just keep itself updated with the database.
Thank you for taking the time to help me.