简体   繁体   English

将新数据插入MySQL数据库后,如何自动更新recyclerView?

[英]How can i update recyclerView automatically when new data is inserted in MySQL database?

How can i update recyclerView automatically when new data is inserted in MySQL database ? 将新数据插入MySQL数据库后,如何自动更新recyclerView?

So for example like in instant chat apps like WhatsApp .By the way i don't want to use Firebase , and i don't want to bring the whole data again. 因此,例如像WhatsApp这样的即时聊天应用程序。通过这种方式,我不想使用Firebase,而且我也不想再次携带全部数据。 So is that possible with MySQL database , i know it's a stupid question but i'm just a beginner . MySQL数据库是否有可能,我知道这是一个愚蠢的问题,但我只是一个初学者。

查询新数据Recyclerview.notifyDataSetChanged()后,请在recyclerview上尝试此方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在更新数据库时自动更新JTable数据? - How can I update my JTable data automatically when the database is updated? 如何在Recyclerview中更新数据? - How Can I Update data in Recyclerview? 如何将我在EditText中输入的数据插入到数据库中并显示在recyclerview上而不像ajax那样刷新它? - how do I make the data I input in the EditText inserted into the database and appear on the recyclerview without refreshing it like ajax? 从mysql数据库列接收某些数据后,如何在recyclerview中更改特定卡片的颜色 - How can I change color of specific card in recyclerview after receiving certain data from mysql database column 使用Retrofit将数据添加到数据库时,如何刷新RecyclerView? - How can I refresh a RecyclerView when I add data using Retrofit into database? 添加新数据后如何刷新 RecyclerView? - How can I refresh RecyclerView after adding new data? 如何每秒使用 RecyclerView 刷新 Firebase 数据库数据 - How can I refresh Firebase database data with RecyclerView every seconde 在数据库中插入一行后,如何自动发送电子邮件? - how to send an e-mail automatically when a row is inserted in the database? 如何自动更新MySQL数据库中的日期/时间? - How to automatically update date/time in mysql database? 当我将数据更新到 Firestore 时 RecyclerView 崩溃 - RecyclerView crashes when I update data to Firestore
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM