title: How to listen to any changes on a mysql databse from a android studio application?
body: <p>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.</p>
  
  <p>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 :/</p>
  
  <p>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 :)</p>
  
  <p>So I'd like my app to just keep itself updated with the database.</p>
  
  <p>Thank you for taking the time to help me.</p>